diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-01-10 20:17:36 +0100 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-01-10 20:17:36 +0100 |
| commit | 2891400022ca1442828a1f283030fd4629b58fc8 (patch) | |
| tree | ca61c946bb78352df09a16582513a9e5d76e7116 | |
| parent | 15b25b348e5b3720d159d54e051115074a8230b3 (diff) | |
| download | tidal-dl-ng-2891400022ca1442828a1f283030fd4629b58fc8.tar.gz | |
🛠️ Concatenating all artists and displays them within the results in the GUI. Fixes #7.
| -rw-r--r-- | tidal_dl_ng/gui.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tidal_dl_ng/gui.py b/tidal_dl_ng/gui.py index 6c7f22f..4a22f91 100644 --- a/tidal_dl_ng/gui.py +++ b/tidal_dl_ng/gui.py @@ -270,7 +270,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): if isinstance(item, Track): result_item: ResultSearch = ResultSearch( position=idx, - artist=item.artist.name, + artist=", ".join(artist.name for artist in item.artists), title=item.name, album=item.album.name, duration_sec=item.duration, @@ -281,7 +281,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): elif isinstance(item, Video): result_item: ResultSearch = ResultSearch( position=idx, - artist=item.artist.name, + artist=", ".join(artist.name for artist in item.artists), title=item.name, album=item.album.name if item.album else "", duration_sec=item.duration, @@ -292,7 +292,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): elif isinstance(item, Playlist): result_item: ResultSearch = ResultSearch( position=idx, - artist=f"{item.promoted_artists[0].name}, ..." if item.promoted_artists else "", + artist=", ".join(artist.name for artist in item.promoted_artists) if item.promoted_artists else "", title=item.name, album="", duration_sec=item.duration, @@ -303,7 +303,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): elif isinstance(item, Album): result_item: ResultSearch = ResultSearch( position=idx, - artist=item.artist.name, + artist=", ".join(artist.name for artist in item.artists), title="", album=item.name, duration_sec=item.duration, |
