Added a "track_info"-toolbar which shows an image found in the current audio file's metadata (usually the front-cover) and information about the currently playing track such as title and artist name.

This commit is contained in:
The Wobbler 2025-02-21 17:26:47 +01:00
parent ccda6b30c8
commit 39bd7e3167
5 changed files with 101 additions and 5 deletions

View file

@ -67,6 +67,8 @@ class Track:
self.duration = len(self.audio) # track duration in milliseconds
self.tags = TinyTag.get(self.path, ignore_errors=True, duration=False, image=True) # metadata with images
self.cached = True
def clear_cache(self):
@ -76,6 +78,8 @@ class Track:
self.sound = None
self.duration = 0
self.tags = TinyTag.get(self.path, ignore_errors=True, duration=False) # metadata without images
def load_audio(self):
#file_type = self.path.split(".")[-1]