stuff
This commit is contained in:
parent
77eef63fac
commit
a20f7ae59e
@ -317,7 +317,7 @@ class Page:
|
|||||||
music_object: Union[Song, Album, Artist, Label],
|
music_object: Union[Song, Album, Artist, Label],
|
||||||
download_features: bool = True,
|
download_features: bool = True,
|
||||||
default_target: DefaultTarget = None
|
default_target: DefaultTarget = None
|
||||||
):
|
) -> bool:
|
||||||
if default_target is None:
|
if default_target is None:
|
||||||
default_target = DefaultTarget()
|
default_target = DefaultTarget()
|
||||||
|
|
||||||
@ -330,6 +330,8 @@ class Page:
|
|||||||
if type(music_object) is Label:
|
if type(music_object) is Label:
|
||||||
return cls.download_label(music_object, download_features=download_features, default_target=default_target)
|
return cls.download_label(music_object, download_features=download_features, default_target=default_target)
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def download_label(cls, label: Label, download_features: bool = True, override_existing: bool = False, default_target: DefaultTarget = None):
|
def download_label(cls, label: Label, download_features: bool = True, override_existing: bool = False, default_target: DefaultTarget = None):
|
||||||
if default_target is None:
|
if default_target is None:
|
||||||
@ -376,6 +378,8 @@ class Page:
|
|||||||
default_target.label = album.label_collection[0].name
|
default_target.label = album.label_collection[0].name
|
||||||
|
|
||||||
cls.fetch_details(album)
|
cls.fetch_details(album)
|
||||||
|
|
||||||
|
album.update_tracksort()
|
||||||
for song in album.song_collection:
|
for song in album.song_collection:
|
||||||
cls.download_song(song, override_existing=override_existing, default_target=default_target)
|
cls.download_song(song, override_existing=override_existing, default_target=default_target)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user