nathom / streamrip

A scriptable music downloader for Qobuz, Tidal, SoundCloud, and Deezer
GNU General Public License v3.0
2.72k stars 247 forks source link

[BUG] Can't download a artist from Deezer #303

Closed quotengrote closed 2 years ago

quotengrote commented 2 years ago

Describe the bug

I want to download all of Pete Doherty.

Command Used

``
mg@irantu ~
> rip url https://www.deezer.com/de/artist/241187
``

Debug Traceback

DEBUG:streamrip:Config loaded
DEBUG:streamrip:Parsed urls: [('deezer', 'artist', '241187')]
DEBUG:streamrip:Searching for {'id': '241187'} in database
DEBUG:streamrip:Executing SELECT EXISTS(SELECT 1 FROM downloads WHERE id=?)
DEBUG:streamrip:{'downloads': {'folder': '/home/mg/StreamripDownloads', 'source_subdirectories': False, 'concurrency': {'enabled': True, 'max_connections': 3}}, 'qobuz': {'quality': 3, 'download_booklets': True, 'email': '', 'password': '', 'app_id': '', 'secrets': []}, 'tidal': {'quality': 3, 'download_videos': True, 'user_id': '', 'country_code': '', 'access_token': '', 'refresh_token': '', 'token_expiry': ''}, 'deezer': {'quality': 1, 'arl': '6255143ef2e2f66fab11dc32e2437f1fd861569ab7f206e55e2343046e1dc5b40c5c574450926d34566ef18f44c80968f55078d5778de711c384d9494f9d6659142eca428017928a341ebe29f0fea02913ca5421e955fd222c3d43d0e859c863', 'use_deezloader': True, 'deezloader_warnings': True}, 'soundcloud': {'quality': 0, 'client_id': '', 'app_version': ''}, 'youtube': {'quality': 0, 'download_videos': False, 'video_downloads_folder': ''}, 'database': {'downloads': {'enabled': True, 'path': '/home/mg/.config/streamrip/downloads.db'}, 'failed_downloads': {'enabled': True, 'path': '/home/mg/.config/streamrip/failed_downloads.db'}}, 'conversion': {'enabled': False, 'codec': 'ALAC', 'sampling_rate': 48000, 'bit_depth': 24, 'lossy_bitrate': 320}, 'filters': {'extras': False, 'repeats': False, 'non_albums': False, 'features': False, 'non_studio_albums': False, 'non_remaster': False}, 'artwork': {'embed': True, 'size': 'large', 'max_width': -1, 'max_height': -1, 'keep_hires_cover': True}, 'metadata': {'set_playlist_to_album': True, 'new_playlist_tracknumbers': True, 'exclude': []}, 'filepaths': {'add_singles_to_folder': False, 'folder_format': '{albumartist} - {title} ({year}) [{container}] [{bit_depth}B-{sampling_rate}kHz]', 'track_format': '{tracknumber}. {artist} - {title}', 'restrict_characters': False}, 'lastfm': {'source': 'qobuz', 'fallback_source': 'deezer'}, 'theme': {'progress_bar': 'dainty'}, 'misc': {'version': '1.9.2'}}
DEBUG:streamrip:Arguments from config: {'restrict_filenames': False, 'parent_folder': '/home/mg/StreamripDownloads', 'folder_format': '{albumartist} - {title} ({year}) [{container}] [{bit_depth}B-{sampling_rate}kHz]', 'track_format': '{tracknumber}. {artist} - {title}', 'embed_cover': True, 'embed_cover_size': 'large', 'keep_hires_cover': True, 'set_playlist_to_album': True, 'stay_temp': False, 'conversion': {'enabled': False, 'codec': 'ALAC', 'sampling_rate': 48000, 'bit_depth': 24, 'lossy_bitrate': 320}, 'concurrent_downloads': True, 'max_connections': 3, 'new_tracknumbers': True, 'download_videos': True, 'download_booklets': True, 'download_youtube_videos': False, 'youtube_video_downloads_folder': '', 'add_singles_to_folder': False, 'max_artwork_width': -1, 'max_artwork_height': -1, 'exclude_tags': []}
DEBUG:streamrip:Added filter argument for artist/label: ()
DEBUG:streamrip:Loading metadata
DEBUG:streamrip:{'id': 241187, 'name': 'Peter Doherty', 'link': 'https://www.deezer.com/artist/241187', 'share': 'https://www.deezer.com/artist/241187?utm_source=deezer&utm_content=artist-241187&utm_term=0_1645188160&utm_medium=web', 'picture': 'https://api.deezer.com/artist/241187/image', 'picture_small': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/56x56-000000-80-0-0.jpg', 'picture_medium': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/250x250-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/500x500-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/1000x1000-000000-80-0-0.jpg', 'nb_album': 14, 'nb_fan': 78144, 'radio': True, 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist', 'albums': [{'id': 277122692, 'title': 'The Fantasy Life Of Poetry & Crime (Album)', 'link': 'https://www.deezer.com/album/277122692', 'cover': '', 'cover_small': None, 'cover_medium': None, 'cover_big': None, 'cover_xl': None, 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'genre_id': 85, 'fans': 77, 'release_date': '2022-03-18', 'record_type': 'album', 'tracklist': '', 'explicit_lyrics': False, 'type': 'album'}, {'id': 85433272, 'title': 'Peter Doherty & The Puta Madres', 'link': 'https://www.deezer.com/album/85433272', 'cover': 'https://api.deezer.com/album/85433272/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/76892b201eadf587c542c587489953fa/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/76892b201eadf587c542c587489953fa/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/76892b201eadf587c542c587489953fa/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/76892b201eadf587c542c587489953fa/1000x1000-000000-80-0-0.jpg', 'md5_image': '76892b201eadf587c542c587489953fa', 'genre_id': 85, 'fans': 4242, 'release_date': '2019-04-26', 'record_type': 'album', 'tracklist': 'https://api.deezer.com/album/85433272/tracks', 'explicit_lyrics': True, 'type': 'album'}, {'id': 14714230, 'title': 'Hamburg Demonstrations', 'link': 'https://www.deezer.com/album/14714230', 'cover': 'https://api.deezer.com/album/14714230/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/26df72c095f9f8ee052a273577f55644/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/26df72c095f9f8ee052a273577f55644/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/26df72c095f9f8ee052a273577f55644/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/26df72c095f9f8ee052a273577f55644/1000x1000-000000-80-0-0.jpg', 'md5_image': '26df72c095f9f8ee052a273577f55644', 'genre_id': 85, 'fans': 5931, 'release_date': '2016-12-02', 'record_type': 'album', 'tracklist': 'https://api.deezer.com/album/14714230/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 1235131, 'title': 'Grace/Wastelands', 'link': 'https://www.deezer.com/album/1235131', 'cover': 'https://api.deezer.com/album/1235131/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/a58d5d0940adf7c7f7a4072f26c310c0/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/a58d5d0940adf7c7f7a4072f26c310c0/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/a58d5d0940adf7c7f7a4072f26c310c0/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/a58d5d0940adf7c7f7a4072f26c310c0/1000x1000-000000-80-0-0.jpg', 'md5_image': 'a58d5d0940adf7c7f7a4072f26c310c0', 'genre_id': 152, 'fans': 853, 'release_date': '2009-03-11', 'record_type': 'album', 'tracklist': 'https://api.deezer.com/album/1235131/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 280870451, 'title': "You Can't Keep It From Me Forever", 'link': 'https://www.deezer.com/album/280870451', 'cover': 'https://api.deezer.com/album/280870451/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/a85b0c94290ed74967282d33708689d7/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/a85b0c94290ed74967282d33708689d7/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/a85b0c94290ed74967282d33708689d7/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/a85b0c94290ed74967282d33708689d7/1000x1000-000000-80-0-0.jpg', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'genre_id': 85, 'fans': 35, 'release_date': '2022-01-21', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/280870451/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 270188062, 'title': 'The Fantasy Life Of Poetry & Crime', 'link': 'https://www.deezer.com/album/270188062', 'cover': 'https://api.deezer.com/album/270188062/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/22ff4465d82f2d1b9551524164f4a70d/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/22ff4465d82f2d1b9551524164f4a70d/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/22ff4465d82f2d1b9551524164f4a70d/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/22ff4465d82f2d1b9551524164f4a70d/1000x1000-000000-80-0-0.jpg', 'md5_image': '22ff4465d82f2d1b9551524164f4a70d', 'genre_id': 85, 'fans': 49, 'release_date': '2021-11-19', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/270188062/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 92170232, 'title': 'Paradise Is Under Your Nose (Radio Edit)', 'link': 'https://www.deezer.com/album/92170232', 'cover': 'https://api.deezer.com/album/92170232/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/f6f5a8a22a0b9b507dca7eec53340b65/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/f6f5a8a22a0b9b507dca7eec53340b65/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/f6f5a8a22a0b9b507dca7eec53340b65/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/f6f5a8a22a0b9b507dca7eec53340b65/1000x1000-000000-80-0-0.jpg', 'md5_image': 'f6f5a8a22a0b9b507dca7eec53340b65', 'genre_id': 85, 'fans': 50, 'release_date': '2019-04-05', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/92170232/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 85430452, 'title': "Who's Been Having You Over (Single Mix)", 'link': 'https://www.deezer.com/album/85430452', 'cover': 'https://api.deezer.com/album/85430452/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/70afbbbba93cdf665f00a3e1e4f32ef3/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/70afbbbba93cdf665f00a3e1e4f32ef3/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/70afbbbba93cdf665f00a3e1e4f32ef3/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/70afbbbba93cdf665f00a3e1e4f32ef3/1000x1000-000000-80-0-0.jpg', 'md5_image': '70afbbbba93cdf665f00a3e1e4f32ef3', 'genre_id': 85, 'fans': 82, 'release_date': '2019-01-28', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/85430452/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 14591244, 'title': 'Kolly Kibber', 'link': 'https://www.deezer.com/album/14591244', 'cover': 'https://api.deezer.com/album/14591244/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/26df72c095f9f8ee052a273577f55644/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/26df72c095f9f8ee052a273577f55644/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/26df72c095f9f8ee052a273577f55644/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/26df72c095f9f8ee052a273577f55644/1000x1000-000000-80-0-0.jpg', 'md5_image': '26df72c095f9f8ee052a273577f55644', 'genre_id': 85, 'fans': 223, 'release_date': '2016-11-17', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/14591244/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 14144312, 'title': "I Don't Love Anyone (but You're Not Just Anyone)", 'link': 'https://www.deezer.com/album/14144312', 'cover': 'https://api.deezer.com/album/14144312/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/986435e55e6df1dfd4e0c5d664c9d7c0/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/986435e55e6df1dfd4e0c5d664c9d7c0/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/986435e55e6df1dfd4e0c5d664c9d7c0/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/986435e55e6df1dfd4e0c5d664c9d7c0/1000x1000-000000-80-0-0.jpg', 'md5_image': '986435e55e6df1dfd4e0c5d664c9d7c0', 'genre_id': 85, 'fans': 412, 'release_date': '2016-09-27', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/14144312/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 14144314, 'title': 'The Whole World Is Our Playground', 'link': 'https://www.deezer.com/album/14144314', 'cover': 'https://api.deezer.com/album/14144314/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/198f550b04a23ef534565cc4a5851991/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/198f550b04a23ef534565cc4a5851991/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/198f550b04a23ef534565cc4a5851991/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/198f550b04a23ef534565cc4a5851991/1000x1000-000000-80-0-0.jpg', 'md5_image': '198f550b04a23ef534565cc4a5851991', 'genre_id': 85, 'fans': 199, 'release_date': '2016-09-27', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/14144314/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 9874040, 'title': 'Flags Of The Old Regime', 'link': 'https://www.deezer.com/album/9874040', 'cover': 'https://api.deezer.com/album/9874040/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/1cda790daf37dcf0cf64637de2751ae6/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/1cda790daf37dcf0cf64637de2751ae6/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/1cda790daf37dcf0cf64637de2751ae6/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/1cda790daf37dcf0cf64637de2751ae6/1000x1000-000000-80-0-0.jpg', 'md5_image': '1cda790daf37dcf0cf64637de2751ae6', 'genre_id': 85, 'fans': 657, 'release_date': '2015-03-16', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/9874040/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 361792, 'title': 'Broken Love Song', 'link': 'https://www.deezer.com/album/361792', 'cover': 'https://api.deezer.com/album/361792/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/95470838767cc6d29c544e0ed0a39e19/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/95470838767cc6d29c544e0ed0a39e19/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/95470838767cc6d29c544e0ed0a39e19/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/95470838767cc6d29c544e0ed0a39e19/1000x1000-000000-80-0-0.jpg', 'md5_image': '95470838767cc6d29c544e0ed0a39e19', 'genre_id': 152, 'fans': 978, 'release_date': '2009-07-31', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/361792/tracks', 'explicit_lyrics': False, 'type': 'album'}, {'id': 315551, 'title': 'Last Of The English Roses', 'link': 'https://www.deezer.com/album/315551', 'cover': 'https://api.deezer.com/album/315551/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/e090f583dd0a2acdd8f43777c80dbc2f/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/e090f583dd0a2acdd8f43777c80dbc2f/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/e090f583dd0a2acdd8f43777c80dbc2f/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/e090f583dd0a2acdd8f43777c80dbc2f/1000x1000-000000-80-0-0.jpg', 'md5_image': 'e090f583dd0a2acdd8f43777c80dbc2f', 'genre_id': 152, 'fans': 1911, 'release_date': '2009-03-06', 'record_type': 'single', 'tracklist': 'https://api.deezer.com/album/315551/tracks', 'explicit_lyrics': False, 'type': 'album'}]}
DEBUG:streamrip:Appending album: The Fantasy Life Of Poetry & Crime (Album)
DEBUG:streamrip:Appending album: Peter Doherty & The Puta Madres
DEBUG:streamrip:Appending album: Hamburg Demonstrations
DEBUG:streamrip:Appending album: Grace/Wastelands
DEBUG:streamrip:Appending album: You Can't Keep It From Me Forever
DEBUG:streamrip:Appending album: The Fantasy Life Of Poetry & Crime
DEBUG:streamrip:Appending album: Paradise Is Under Your Nose (Radio Edit)
DEBUG:streamrip:Appending album: Who's Been Having You Over (Single Mix)
DEBUG:streamrip:Appending album: Kolly Kibber
DEBUG:streamrip:Appending album: I Don't Love Anyone (but You're Not Just Anyone)
DEBUG:streamrip:Appending album: The Whole World Is Our Playground
DEBUG:streamrip:Appending album: Flags Of The Old Regime
DEBUG:streamrip:Appending album: Broken Love Song
DEBUG:streamrip:Appending album: Last Of The English Roses
DEBUG:streamrip:Artist folder: Peter Doherty
DEBUG:streamrip:Length of tracklist 14
DEBUG:streamrip:Filters: ()

Downloading Peter Doherty (Artist)

DEBUG:streamrip:{'id': 277122692, 'title': 'The Fantasy Life Of Poetry & Crime (Album)', 'upc': '8720205763839', 'link': 'https://www.deezer.com/album/277122692', 'share': 'https://www.deezer.com/album/277122692?utm_source=deezer&utm_content=album-277122692&utm_term=0_1645188161&utm_medium=web', 'cover': '', 'cover_small': None, 'cover_medium': None, 'cover_big': None, 'cover_xl': None, 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'genre_id': 85, 'genres': {'data': [{'id': 85, 'name': 'Alternative', 'picture': 'https://api.deezer.com/genre/85/image', 'type': 'genre'}, {'id': 86, 'name': 'Indie Pop', 'picture': 'https://api.deezer.com/genre/86/image', 'type': 'genre'}, {'id': 87, 'name': 'Indie Rock', 'picture': 'https://api.deezer.com/genre/87/image', 'type': 'genre'}]}, 'label': 'Strap Originals', 'nb_tracks': 12, 'duration': 2181, 'fans': 77, 'release_date': '2022-03-18', 'record_type': 'album', 'available': True, 'tracklist': '', 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'contributors': [{'id': 241187, 'name': 'Peter Doherty', 'link': 'https://www.deezer.com/artist/241187', 'share': 'https://www.deezer.com/artist/241187?utm_source=deezer&utm_content=artist-241187&utm_term=0_1645188161&utm_medium=web', 'picture': 'https://api.deezer.com/artist/241187/image', 'picture_small': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/56x56-000000-80-0-0.jpg', 'picture_medium': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/250x250-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/500x500-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/1000x1000-000000-80-0-0.jpg', 'radio': True, 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist', 'role': 'Main'}, {'id': 4415607, 'name': 'Frédéric Lo', 'link': 'https://www.deezer.com/artist/4415607', 'share': 'https://www.deezer.com/artist/4415607?utm_source=deezer&utm_content=artist-4415607&utm_term=0_1645188161&utm_medium=web', 'picture': 'https://api.deezer.com/artist/4415607/image', 'picture_small': 'https://e-cdns-images.dzcdn.net/images/artist/14f51fb6fccef36c43c22dcd081e1e88/56x56-000000-80-0-0.jpg', 'picture_medium': 'https://e-cdns-images.dzcdn.net/images/artist/14f51fb6fccef36c43c22dcd081e1e88/250x250-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/artist/14f51fb6fccef36c43c22dcd081e1e88/500x500-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/artist/14f51fb6fccef36c43c22dcd081e1e88/1000x1000-000000-80-0-0.jpg', 'radio': True, 'tracklist': 'https://api.deezer.com/artist/4415607/top?limit=50', 'type': 'artist', 'role': 'Main'}], 'artist': {'id': 241187, 'name': 'Peter Doherty', 'picture': 'https://api.deezer.com/artist/241187/image', 'picture_small': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/56x56-000000-80-0-0.jpg', 'picture_medium': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/250x250-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/500x500-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/artist/41183af4a62daf2d9085947b8a4106c5/1000x1000-000000-80-0-0.jpg', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'album', 'tracks': [{'id': 1573995122, 'readable': True, 'title': 'The Fantasy Life Of Poetry & Crime', 'title_short': 'The Fantasy Life Of Poetry & Crime', 'title_version': '', 'isrc': 'NLRD52023751', 'link': 'https://www.deezer.com/track/1573995122', 'duration': 222, 'track_position': 1, 'disk_number': 1, 'rank': 299453, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': 'https://cdns-preview-7.dzcdn.net/stream/c-7d8572dc0174bbcb28010f1121c6eba1-2.mp3', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995132, 'readable': False, 'title': 'The Epidemiologist', 'title_short': 'The Epidemiologist', 'title_version': '', 'isrc': 'NLRD52023752', 'link': 'https://www.deezer.com/track/1573995132', 'duration': 217, 'track_position': 2, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995142, 'readable': False, 'title': 'The Ballad Of', 'title_short': 'The Ballad Of', 'title_version': '', 'isrc': 'NLRD52023753', 'link': 'https://www.deezer.com/track/1573995142', 'duration': 194, 'track_position': 3, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995152, 'readable': True, 'title': "You Can't Keep It From Me Forever", 'title_short': "You Can't Keep It From Me Forever", 'title_version': '', 'isrc': 'NLRD52023754', 'link': 'https://www.deezer.com/track/1573995152', 'duration': 167, 'track_position': 4, 'disk_number': 1, 'rank': 269472, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': 'https://cdns-preview-a.dzcdn.net/stream/c-a13188394f6830dcd6c862a1a1a9db8e-3.mp3', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995162, 'readable': False, 'title': 'Yes I Wear A Mask', 'title_short': 'Yes I Wear A Mask', 'title_version': '', 'isrc': 'NLRD52023755', 'link': 'https://www.deezer.com/track/1573995162', 'duration': 133, 'track_position': 5, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995172, 'readable': False, 'title': 'Rock & Roll Alchemy', 'title_short': 'Rock & Roll Alchemy', 'title_version': '', 'isrc': 'NLRD52023756', 'link': 'https://www.deezer.com/track/1573995172', 'duration': 142, 'track_position': 6, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995182, 'readable': False, 'title': 'The Monster', 'title_short': 'The Monster', 'title_version': '', 'isrc': 'NLRD52023757', 'link': 'https://www.deezer.com/track/1573995182', 'duration': 123, 'track_position': 7, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995192, 'readable': False, 'title': 'Invictus', 'title_short': 'Invictus', 'title_version': '', 'isrc': 'NLRD52023758', 'link': 'https://www.deezer.com/track/1573995192', 'duration': 184, 'track_position': 8, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995202, 'readable': False, 'title': 'The Glassblower', 'title_short': 'The Glassblower', 'title_version': '', 'isrc': 'NLRD52023759', 'link': 'https://www.deezer.com/track/1573995202', 'duration': 217, 'track_position': 9, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995212, 'readable': False, 'title': 'Keeping Me On File', 'title_short': 'Keeping Me On File', 'title_version': '', 'isrc': 'NLRD52023760', 'link': 'https://www.deezer.com/track/1573995212', 'duration': 194, 'track_position': 10, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995222, 'readable': False, 'title': 'Abe Wassenstein', 'title_short': 'Abe Wassenstein', 'title_version': '', 'isrc': 'NLRD52023761', 'link': 'https://www.deezer.com/track/1573995222', 'duration': 164, 'track_position': 11, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}, {'id': 1573995232, 'readable': False, 'title': 'Far From The Madding Crowd', 'title_short': 'Far From The Madding Crowd', 'title_version': '', 'isrc': 'NLRD52023762', 'link': 'https://www.deezer.com/track/1573995232', 'duration': 224, 'track_position': 12, 'disk_number': 1, 'rank': 100000, 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': '', 'md5_image': 'a85b0c94290ed74967282d33708689d7', 'artist': {'id': 241187, 'name': 'Peter Doherty', 'tracklist': 'https://api.deezer.com/artist/241187/top?limit=50', 'type': 'artist'}, 'type': 'track'}], 'track_total': 12}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x761ae7b5ccc6278>, 'id': 1573995122, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x729a6ede2d96663>, 'id': 1573995132, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x146b23a5ff81749e>, 'id': 1573995142, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x164ec7c33edca6ec>, 'id': 1573995152, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x1a260e868ecd92d6>, 'id': 1573995162, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x13cbd46cff85e6dd>, 'id': 1573995172, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x8cf593e0fa989a0>, 'id': 1573995182, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0xe5eb2059d166e1c>, 'id': 1573995192, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x4b52502466da1f5>, 'id': 1573995202, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x3662253530cb05c>, 'id': 1573995212, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0xfd3bac893e1d923>, 'id': 1573995222, 'part_of_tracklist': True}
DEBUG:streamrip:{'meta': <TrackMetadata object 0x33a440fd33bf32d>, 'id': 1573995232, 'part_of_tracklist': True}
DEBUG:streamrip:Sampling rate, bit depth = ()
DEBUG:streamrip:Formatter: {'albumartist': 'Peter Doherty', 'title': 'The Fantasy Life Of Poetry & Crime (Album)', 'year': '2022', 'bit_depth': None, 'sampling_rate': None, 'container': 'MP3', 'albumcomposer': None, 'id': 277122692}
DEBUG:streamrip:Formatter keys: {albumartist} - {title} ({year}) [{container}] [{bit_depth}B-{sampling_rate}kHz]
DEBUG:streamrip:'albumartist'
DEBUG:streamrip:Peter Doherty
DEBUG:streamrip:1
DEBUG:streamrip:'title'
DEBUG:streamrip:The Fantasy Life Of Poetry & Crime (Album)
DEBUG:streamrip:1
DEBUG:streamrip:'year'
DEBUG:streamrip:2022
DEBUG:streamrip:1
DEBUG:streamrip:'container'
DEBUG:streamrip:MP3
DEBUG:streamrip:1
DEBUG:streamrip:'bit_depth'
DEBUG:streamrip:None
DEBUG:streamrip:'sampling_rate'
DEBUG:streamrip:None

Downloading The Fantasy Life Of Poetry & Crime (Album) (Album)

Downloading cover art (large)
DEBUG:streamrip:Chosen cover url: None

  Stack trace:

  12  .local/lib/python3.8/site-packages/cleo/application.py:330 in run
       328│ 
       329│             try:
     → 330│                 exit_code = self._run(io)
       331│             except Exception as e:
       332│                 if not self._catch_exceptions:

  11  .local/lib/python3.8/site-packages/rip/cli.py:759 in _run
       757│             logger.addHandler(fh)
       758│ 
     → 759│         super()._run(io)
       760│ 
       761│     def create_io(self, input=None, output=None, error_output=None):

  10  .local/lib/python3.8/site-packages/cleo/application.py:425 in _run
       423│                 io.set_input(ArgvInput(argv))
       424│ 
     → 425│         exit_code = self._run_command(command, io)
       426│         self._running_command = None
       427│ 

   9  .local/lib/python3.8/site-packages/cleo/application.py:432 in _run_command
       430│     def _run_command(self, command: Command, io: IO) -> int:
       431│         if self._event_dispatcher is None:
     → 432│             return command.run(io)
       433│ 
       434│         # Bind before the console.command event,

   8  .local/lib/python3.8/site-packages/cleo/commands/base_command.py:118 in run
       116│         io.input.validate()
       117│ 
     → 118│         status_code = self.execute(io)
       119│ 
       120│         if status_code is None:

   7  .local/lib/python3.8/site-packages/cleo/commands/command.py:85 in execute
        83│ 
        84│         try:
     →  85│             return self.handle()
        86│         except KeyboardInterrupt:
        87│             return 1

   6  .local/lib/python3.8/site-packages/rip/cli.py:124 in handle
       122│ 
       123│         if len(core) > 0:
     → 124│             core.download()
       125│         elif not urls and path is None:
       126│             self.line("Must pass arguments. See rip url -h.")

   5  .local/lib/python3.8/site-packages/rip/core.py:313 in download
       311│ 
       312│             try:
     → 313│                 item.download(**arguments)
       314│                 for item_id in item.downloaded_ids:
       315│                     self.db.add([item_id])

   4  .local/lib/python3.8/site-packages/streamrip/media.py:1999 in download
       1997│         iterator = self._prepare_download(**kwargs)
       1998│         for item in iterator:
     → 1999│             self._download_item(item, **kwargs)
       2000│ 
       2001│     def _load_albums(self):

   3  .local/lib/python3.8/site-packages/streamrip/media.py:2085 in _download_item
       2083│         # always an Album
       2084│         try:
     → 2085│             item.download(
       2086│                 parent_folder=self.folder,
       2087│                 **kwargs,

   2  .local/lib/python3.8/site-packages/streamrip/media.py:1159 in download
       1157│         :param kwargs:
       1158│         """
     → 1159│         self._prepare_download(**kwargs)
       1160│         if kwargs.get("conversion", False):
       1161│             has_conversion = kwargs["conversion"]["enabled"]

   1  .local/lib/python3.8/site-packages/streamrip/media.py:1524 in _prepare_download
       1522│         self.download_message()
       1523│ 
     → 1524│         cover_path = _choose_and_download_cover(
       1525│             self.cover_urls,
       1526│             kwargs.get("embed_cover_size", "large"),

  StopIteration

  at .local/lib/python3.8/site-packages/streamrip/media.py:2345 in _choose_and_download_cover
      2341│     if not os.path.exists(temp_cover_path):
      2342│         # Sometimes a size isn't available. When this is the case, find
      2343│         # the first `not None` url.
      2344│         if embed_cover_url is None:
    → 2345│             embed_cover_url = next(filter(None, cover_urls.values()))
      2346│ 
      2347│         logger.debug("Downloading cover from url %s", embed_cover_url)
      2348│ 
      2349│         _cover_download(embed_cover_url, temp_cover_path)

If this was unexpected, please open a Bug Report at https://github.com/nathom/streamrip/issues/new/choose

### Config File

```toml
[downloads]
# Folder where tracks are downloaded to
folder = "/home/mg/StreamripDownloads"
# Put Qobuz albums in a 'Qobuz' folder, Tidal albums in 'Tidal' etc.
source_subdirectories = false

[downloads.concurrency]
# Download (and convert) tracks all at once, instead of sequentially. 
# If you are converting the tracks, or have fast internet, this will 
# substantially improve processing speed.
enabled = true
# The maximum number of tracks to download at once
# If you have very fast internet, you will benefit from a higher value,
# A value that is too high for your bandwidth may cause slowdowns
max_connections = 3

[qobuz]
# 1: 320kbps MP3, 2: 16/44.1, 3: 24/<=96, 4: 24/>=96
quality = 3
# This will download booklet pdfs that are included with some albums
download_booklets = true

email = ""
# This is an md5 hash of the plaintext password
password = ""
# Do not change
app_id = ""
# Do not change
secrets = []

[tidal]
# 0: 256kbps AAC, 1: 320kbps AAC, 2: 16/44.1 "HiFi" FLAC, 3: 24/44.1 "MQA" FLAC
quality = 3
# This will download videos included in Video Albums.
download_videos = true

# Do not change any of the fields below
user_id = ""
country_code = ""
access_token = ""
refresh_token = ""
# Tokens last 1 week after refresh. This is the Unix timestamp of the expiration
# time. If you haven't used streamrip in more than a week, you may have to log
# in again using `rip config --tidal`
token_expiry = ""

[deezer]
# 0, 1, or 2
# This only applies to paid Deezer subscriptions. Those using deezloader
# are automatically limited to quality = 1
quality = 1
# An authentication cookie that allows streamrip to use your Deezer account
# See https://github.com/nathom/streamrip/wiki/Finding-Your-Deezer-ARL-Cookie
# for instructions on how to find this
arl = "62551[censored]c863"
# This allows for free 320kbps MP3 downloads from Deezer
# If an arl is provided, deezloader is never used
use_deezloader = true
# This warns you when the paid deezer account is not logged in and rip falls
# back to deezloader, which is unreliable
deezloader_warnings = true

[soundcloud]
# Only 0 is available for now
quality = 0
# This changes periodically, so it needs to be updated
client_id = ""
app_version = ""

[youtube]
# Only 0 is available for now
quality = 0
# Download the video along with the audio
download_videos = false
# The path to download the videos to
video_downloads_folder = ""

# This stores a list of item IDs so that repeats are not downloaded.

[database.downloads]
enabled = true
path = "/home/mg/.config/streamrip/downloads.db"

# If a download fails, the item ID is stored here. Then, `rip repair` can be
# called to retry the downloads

[database.failed_downloads]
enabled = true
path = "/home/mg/.config/streamrip/failed_downloads.db"

# Convert tracks to a codec after downloading them.

[conversion]
enabled = false
# FLAC, ALAC, OPUS, MP3, VORBIS, or AAC
codec = "ALAC"
# In Hz. Tracks are downsampled if their sampling rate is greater than this. 
# Value of 48000 is recommended to maximize quality and minimize space
sampling_rate = 48000
# Only 16 and 24 are available. It is only applied when the bit depth is higher
# than this value.
bit_depth = 24
# Only applicable for lossy codecs
lossy_bitrate = 320

# Filter a Qobuz artist's discography. Set to 'true' to turn on a filter.

[filters]
# Remove Collectors Editions, live recordings, etc.
extras = false
# Picks the highest quality out of albums with identical titles.
repeats = false
# Remove EPs and Singles
non_albums = false
# Remove albums whose artist is not the one requested
features = false
# Skip non studio albums
non_studio_albums = false
# Only download remastered albums
non_remaster = false

[artwork]
# Write the image to the audio file
embed = true
# The size of the artwork to embed. Options: thumbnail, small, large, original.
# "original" images can be up to 30MB, and may fail embedding. 
# Using "large" is recommended.
size = "large"
# Both of these options limit the size of the embedded artwork. If their values
# are larger than the actual dimensions of the image, they will be ignored.
# If either value is -1, the image is left untouched.
max_width = -1
max_height = -1
# Save the cover image at the highest quality as a seperate jpg file
keep_hires_cover = true

[metadata]
# Sets the value of the 'ALBUM' field in the metadata to the playlist's name. 
# This is useful if your music library software organizes tracks based on album name.
set_playlist_to_album = true
# Replaces the original track's tracknumber with it's position in the playlist
new_playlist_tracknumbers = true
# The following metadata tags won't be applied
# See https://github.com/nathom/streamrip/wiki/Metadata-Tag-Names for more info
exclude = []

# Changes the folder and file names generated by streamrip.

[filepaths]
# Create folders for single tracks within the downloads directory using the folder_format
# template
add_singles_to_folder = false
# Available keys: "albumartist", "title", "year", "bit_depth", "sampling_rate",
# "container", "id", and "albumcomposer"
folder_format = "{albumartist} - {title} ({year}) [{container}] [{bit_depth}B-{sampling_rate}kHz]"
# Available keys: "tracknumber", "artist", "albumartist", "composer", "title",
# and "albumcomposer"
track_format = "{tracknumber}. {artist} - {title}"
# Only allow printable ASCII characters in filenames.
restrict_characters = false

# Last.fm playlists are downloaded by searching for the titles of the tracks

[lastfm]
# The source on which to search for the tracks.
source = "qobuz"
# If no results were found with the primary source, the item is searched for 
# on this one.
fallback_source = "deezer"

[theme]
# Options: "dainty" or "plain"
progress_bar = "dainty"

[misc]
# Metadata to identify this config file. Do not change.
version = "1.9.2"


### Operating System

Linux Ubuntu 20.04.3 LTS (Focal Fossa)

### streamrip version

Rip (version 1.9.4)

### Screenshots and recordings

_No response_

### Additional context

_No response_
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

quotengrote commented 2 years ago

Issue is still a problem.

iambrutalism commented 2 years ago

Looks like the cover from the album cannot be downloaded. Streamrip cannot update ID3TAG with cover and crash.

You can disable the artwork embeding with a param in your config file :

[artwork] embed = false

iambrutalism commented 2 years ago

I can PR a fix if needed

quotengrote commented 2 years ago

Sounds good to me if you want, thx

tmikaeld commented 2 years ago

@iambrutalism I tried the patch, didn't help fix the issue when there's no cover.

image

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.