2
0
Fork 0

download albums rather than tracks

This commit is contained in:
Luca Bilke 2023-06-27 09:28:58 +02:00
parent 1b73e549c0
commit e0be911118
No known key found for this signature in database
GPG Key ID: 7B77C51E8C779E75
1 changed files with 6 additions and 2 deletions

View File

@ -145,9 +145,13 @@ else:
user = session.get_user(USER_ID)
favorites = tidalapi.user.Favorites(session, user.id)
tracks = favorites.tracks()
albums = favorites.albums()
dl_tracks = []
for album in albums:
tracks = album.tracks()
dl_tracks += tracks
for track in tracks:
for track in dl_tracks:
print(f"Downloading {track.name} - {track.artist.name}") # type: ignore[reportOptionalMemberAccess]
check, msg = download_track(track)
print(msg)