artist and album labels fix

This commit is contained in:
billypom on debian 2025-03-30 22:57:05 -04:00
parent 019bf5c8e7
commit bd9070b1c8

10
main.py
View File

@ -330,15 +330,19 @@ class ApplicationWindow(QMainWindow, Ui_MainWindow):
if self.current_song_metadata is not None: if self.current_song_metadata is not None:
artist = ( artist = (
self.current_song_metadata["TPE1"][0] self.current_song_metadata["TPE1"][0]
if "artist" in self.current_song_metadata if "TPE1" in self.current_song_metadata
else None else None
) )
album = ( album = (
self.current_song_metadata["TALB"][0] self.current_song_metadata["TALB"][0]
if "album" in self.current_song_metadata if "TALB" in self.current_song_metadata
else None
)
title = (
self.current_song_metadata["TIT2"][0]
if "TIT2" in self.current_song_metadata
else None else None
) )
title = self.current_song_metadata["TIT2"][0]
debug(artist) debug(artist)
debug(title) debug(title)