nathom / streamrip

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

[BUG] Deezer : Unable to stream XXX --> WrongLicense #205

Closed Xobtah closed 2 years ago

Xobtah commented 2 years ago

Describe the bug

I am unable to download anything from Deezer, I get this error with an empty message :

Unable to stream XXX. Message:

The -vvv option shows DEBUG:streamrip:WrongLicense() which can be linked to my problem.

I have a paid Deezer account.

Command Used

rip url -vvv https://www.deezer.com/us/track/1374379292

Debug Traceback

DEBUG:streamrip:Config loaded
DEBUG:streamrip:Parsed urls: [('deezer', 'track', '1374379292')]
DEBUG:streamrip:Searching for {'id': '1374379292'} in database
DEBUG:streamrip:{'id': '1374379292'}
DEBUG:streamrip:{'downloads': {'folder': '/home/oui/Music', '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': 2, 'arl': '[MY VALID ARL HERE]', 'use_deezloader': True, 'deezloader_warnings': True}, 'soundcloud': {'quality': 0, 'client_id': '', 'app_version': ''}, 'youtube': {'quality': 0, 'download_videos': True, 'video_downloads_folder': '/home/oui/Videos'}, 'database': {'downloads': {'enabled': False, 'path': '/home/oui/.config/streamrip/downloads.db'}, 'failed_downloads': {'enabled': True, 'path': '/home/oui/.config/streamrip/failed_downloads.db'}}, 'conversion': {'enabled': False, 'codec': 'ALAC', 'sampling_rate': 48000, 'bit_depth': 24}, '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.6'}}
DEBUG:streamrip:Arguments from config: {'restrict_filenames': False, 'parent_folder': '/home/oui/Music', '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}, 'concurrent_downloads': True, 'max_connections': 3, 'new_tracknumbers': True, 'download_videos': True, 'download_booklets': True, 'download_youtube_videos': True, 'youtube_video_downloads_folder': '/home/oui/Videos', 'add_singles_to_folder': False, 'max_artwork_width': -1, 'max_artwork_height': -1, 'exclude_tags': []}
DEBUG:streamrip:Loading metadata
DEBUG:streamrip:{'id': 1374379292, 'readable': True, 'title': 'Kein Problem', 'title_short': 'Kein Problem', 'title_version': '', 'isrc': 'DEE862100624', 'link': 'https://www.deezer.com/track/1374379292', 'share': 'https://www.deezer.com/track/1374379292?utm_source=deezer&utm_content=track-1374379292&utm_term=0_1634474458&utm_medium=web', 'duration': 177, 'track_position': 1, 'disk_number': 1, 'rank': 460511, 'release_date': '2021-05-28', 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 2, 'preview': 'https://cdns-preview-d.dzcdn.net/stream/c-d52807431d11695574c5f2296df7b823-3.mp3', 'bpm': 0, 'gain': -8.7, 'available_countries': ['AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AR', 'AT', 'AU', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BN', 'BO', 'BQ', 'BR', 'BT', 'BW', 'BY', 'CA', 'CD', 'CF', 'CG', 'CH', 'CI', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FR', 'GA', 'GB', 'GD', 'GE', 'GH', 'GM', 'GN', 'GQ', 'GR', 'GT', 'GW', 'HK', 'HN', 'HR', 'HU', 'ID', 'IE', 'IL', 'IN', 'IQ', 'IR', 'IS', 'IT', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MD', 'ME', 'MG', 'MH', 'MK', 'ML', 'MN', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NE', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NZ', 'OM', 'PA', 'PE', 'PG', 'PH', 'PK', 'PL', 'PN', 'PS', 'PT', 'PW', 'PY', 'QA', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SI', 'SK', 'SL', 'SN', 'SO', 'SS', 'ST', 'SV', 'SX', 'SZ', 'TC', 'TD', 'TG', 'TH', 'TJ', 'TM', 'TN', 'TO', 'TR', 'TV', 'TW', 'TZ', 'UA', 'UG', 'US', 'UY', 'UZ', 'VC', 'VE', 'VG', 'VN', 'VU', 'WS', 'YE', 'ZA', 'ZM', 'ZW'], 'contributors': [{'id': 422888, 'name': 'Tim Bendzko', 'link': 'https://www.deezer.com/artist/422888', 'share': 'https://www.deezer.com/artist/422888?utm_source=deezer&utm_content=artist-422888&utm_term=0_1634474458&utm_medium=web', 'picture': 'https://api.deezer.com/artist/422888/image', 'picture_small': 'https://e-cdns-images.dzcdn.net/images/artist/0b9eebf0bcb1d394f80d5fbc82e6b82e/56x56-000000-80-0-0.jpg', 'picture_medium': 'https://e-cdns-images.dzcdn.net/images/artist/0b9eebf0bcb1d394f80d5fbc82e6b82e/250x250-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/artist/0b9eebf0bcb1d394f80d5fbc82e6b82e/500x500-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/artist/0b9eebf0bcb1d394f80d5fbc82e6b82e/1000x1000-000000-80-0-0.jpg', 'radio': True, 'tracklist': 'https://api.deezer.com/artist/422888/top?limit=50', 'type': 'artist', 'role': 'Main'}], 'md5_image': '33064552e5ebc4a25c66a54806866958', 'artist': {'id': 422888, 'name': 'Tim Bendzko', 'link': 'https://www.deezer.com/artist/422888', 'share': 'https://www.deezer.com/artist/422888?utm_source=deezer&utm_content=artist-422888&utm_term=0_1634474458&utm_medium=web', 'picture': 'https://api.deezer.com/artist/422888/image', 'picture_small': 'https://e-cdns-images.dzcdn.net/images/artist/0b9eebf0bcb1d394f80d5fbc82e6b82e/56x56-000000-80-0-0.jpg', 'picture_medium': 'https://e-cdns-images.dzcdn.net/images/artist/0b9eebf0bcb1d394f80d5fbc82e6b82e/250x250-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/artist/0b9eebf0bcb1d394f80d5fbc82e6b82e/500x500-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/artist/0b9eebf0bcb1d394f80d5fbc82e6b82e/1000x1000-000000-80-0-0.jpg', 'radio': True, 'tracklist': 'https://api.deezer.com/artist/422888/top?limit=50', 'type': 'artist'}, 'album': {'id': 230623902, 'title': 'Kein Problem', 'link': 'https://www.deezer.com/album/230623902', 'cover': 'https://api.deezer.com/album/230623902/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/33064552e5ebc4a25c66a54806866958/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/33064552e5ebc4a25c66a54806866958/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/33064552e5ebc4a25c66a54806866958/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/33064552e5ebc4a25c66a54806866958/1000x1000-000000-80-0-0.jpg', 'md5_image': '33064552e5ebc4a25c66a54806866958', 'release_date': '2021-05-28', 'tracklist': 'https://api.deezer.com/album/230623902/tracks', 'type': 'album'}, 'type': 'track'}
{'thumbnail': 'https://api.deezer.com/album/230623902/image', 'small': 'https://e-cdns-images.dzcdn.net/images/cover/33064552e5ebc4a25c66a54806866958/250x250-000000-80-0-0.jpg', 'large': None, 'original': 'https://e-cdns-images.dzcdn.net/images/cover/33064552e5ebc4a25c66a54806866958/1000x1000-000000-80-0-0.jpg'}
Downloading Tim Bendzko - Kein Problem

DEBUG:streamrip:Track meta formatter {'tracknumber': 1, 'artist': 'Tim Bendzko', 'albumartist': None, 'composer': None, 'title': 'Kein Problem', 'albumcomposer': None}
DEBUG:streamrip:Formatter keys: <filter object at 0x7f8b0674d0a0>
DEBUG:streamrip:Formatted path: /home/oui/Music/01. Tim Bendzko - Kein Problem.flac
DEBUG:streamrip:Downloading cover from https://e-cdns-images.dzcdn.net/images/cover/33064552e5ebc4a25c66a54806866958/500x500-000000-80-0-0.jpg
Cover |███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 00:00 left at 1.38MB/s 
DEBUG:streamrip:Track info: {'ALB_ID': '230623902', 'ALB_PICTURE': '33064552e5ebc4a25c66a54806866958', 'ALB_TITLE': 'Kein Problem', 'ARTISTS': [{'ART_ID': '422888', 'ROLE_ID': '0', 'ARTISTS_SONGS_ORDER': '1', 'ART_NAME': 'Tim Bendzko', 'ARTIST_IS_DUMMY': False, 'ART_PICTURE': '0b9eebf0bcb1d394f80d5fbc82e6b82e', 'RANK': '497047', 'LOCALES': [], '__TYPE__': 'artist'}], 'ART_ID': '422888', 'ART_NAME': 'Tim Bendzko', 'ARTIST_IS_DUMMY': False, 'DIGITAL_RELEASE_DATE': '2021-05-28', 'DISK_NUMBER': '1', 'DURATION': '177', 'EXPLICIT_LYRICS': '0', 'EXPLICIT_TRACK_CONTENT': {'EXPLICIT_LYRICS_STATUS': 0, 'EXPLICIT_COVER_STATUS': 2}, 'GENRE_ID': '0', 'HIERARCHICAL_TITLE': '', 'ISRC': 'DEE862100624', 'LYRICS_ID': 54388502, 'PHYSICAL_RELEASE_DATE': '2021-05-28', 'PROVIDER_ID': '2', 'RANK': '460511', 'SMARTRADIO': 0, 'SNG_CONTRIBUTORS': {'artist': ['Tim Bendzko'], 'main_artist': ['Tim Bendzko'], 'composer': ['Tim Bendzko'], 'author': ['Tim Bendzko']}, 'SNG_ID': '1374379292', 'SNG_TITLE': 'Kein Problem', 'STATUS': 1, 'TRACK_NUMBER': '1', 'USER_ID': 0, 'VERSION': '', 'MD5_ORIGIN': 'd562d2bffbb4c66cdc112dd2da8d7b8a', 'FILESIZE_AAC_64': '0', 'FILESIZE_MP3_64': '0', 'FILESIZE_MP3_128': '2845883', 'FILESIZE_MP3_256': '0', 'FILESIZE_MP3_320': '7114709', 'FILESIZE_MP4_RA1': '0', 'FILESIZE_MP4_RA2': '0', 'FILESIZE_MP4_RA3': '0', 'FILESIZE_FLAC': '0', 'FILESIZE': '2845883', 'GAIN': '-8.7', 'MEDIA_VERSION': '3', 'TRACK_TOKEN': 'AAAAAWFsGdphbTMa2vj0ZTrbxlbAEXcXA7brj09Q7pzJPmJpM8uR_Gnhxer0LDJg2U4BuPPP6LeAfKHXpKlV88ux3nLUlhmOmvUt-5GL0zt4soOIhmPHLOxMNAE-NegEqmCe9XwtO6QV9DFflLnsNHg5', 'TRACK_TOKEN_EXPIRE': 1634546458, 'MEDIA': [{'TYPE': 'preview', 'HREF': 'http://cdn-preview-d.deezer.com/stream/c-d52807431d11695574c5f2296df7b823-3.mp3'}], 'RIGHTS': {'STREAM_ADS_AVAILABLE': True, 'STREAM_ADS': '2000-01-01', 'STREAM_SUB_AVAILABLE': True, 'STREAM_SUB': '2000-01-01'}, '__TYPE__': 'song'}
DEBUG:streamrip:WrongLicense()
Unable to stream Tim Bendzko - Kein Problem. Message: 
DEBUG:streamrip:Executing INSERT INTO failed_downloads (source, media_type, id) VALUES (?, ?, ?)
DEBUG:streamrip:Items to add: ('deezer', 'track', '1374379292')

Config File

https://pastebin.com/yyKApUp8

Operating System

Debian 11

streamrip version

1.6

Screenshots and recordings

No response

Additional context

No response

nathom commented 2 years ago

Do you have a premium deezer account?

Xobtah commented 2 years ago

Yes I do

Xobtah commented 2 years ago

I tried with an ARL that I got from another browser, but it doesn't work

nathom commented 2 years ago

Do you have Deezer HiFi or Deezer Premium? If you only have the latter, you'll need to limit the quality to MP3 using --max-quality 1.

Xobtah commented 2 years ago

It indeed worked, I didn't even know there were multiple different subscription plans. What is the highest quality I can download with a premium account ? Thank you for your help

nathom commented 2 years ago

The highest would be 1. See this.

Xobtah commented 2 years ago

Ok, thank you very much, the issue is fixed