From a20f7ae59e53ca6b5d03ce7546f67262312e28bb Mon Sep 17 00:00:00 2001 From: Hellow2 Date: Mon, 3 Apr 2023 12:38:09 +0200 Subject: [PATCH] stuff --- src/music_kraken/pages/abstract.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/music_kraken/pages/abstract.py b/src/music_kraken/pages/abstract.py index cba14bf..fd908f9 100644 --- a/src/music_kraken/pages/abstract.py +++ b/src/music_kraken/pages/abstract.py @@ -317,7 +317,7 @@ class Page: music_object: Union[Song, Album, Artist, Label], download_features: bool = True, default_target: DefaultTarget = None - ): + ) -> bool: if default_target is None: default_target = DefaultTarget() @@ -330,6 +330,8 @@ class Page: if type(music_object) is Label: return cls.download_label(music_object, download_features=download_features, default_target=default_target) + return False + @classmethod def download_label(cls, label: Label, download_features: bool = True, override_existing: bool = False, default_target: DefaultTarget = None): if default_target is None: @@ -376,6 +378,8 @@ class Page: default_target.label = album.label_collection[0].name cls.fetch_details(album) + + album.update_tracksort() for song in album.song_collection: cls.download_song(song, override_existing=override_existing, default_target=default_target)