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 from Deezer #247

Closed MathewJake365 closed 2 years ago

MathewJake365 commented 2 years ago

Describe the bug

I'm a newcomer to streamrip. I tried to download a track from Deezer using an URL, but it failed and gave me an error. Help is appreciated. Thanks.

Command Used

rip url https://www.deezer.com/us/track/119302924

Debug Traceback

DEBUG:streamrip:Config loaded
DEBUG:streamrip:Parsed urls: [('deezer', 'track', '119302924')]
DEBUG:streamrip:Searching for {'id': '119302924'} in database
DEBUG:streamrip:Executing SELECT EXISTS(SELECT 1 FROM downloads WHERE id=?)
Falling back to Deezloader (unstable). If you have a subscription, run rip config --deezer to log in.
DEBUG:streamrip:{'id': '119302924'}
DEBUG:streamrip:{'downloads': {'folder': 'C:\\Users\\USER\\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': 2, 'arl': '', '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': 'C:\\Users\\USER\\AppData\\Local\\streamrip\\streamrip\\downloads.db'}, 'failed_downloads': {'enabled': True, 'path': 'C:\\Users\\USER\\AppData\\Local\\streamrip\\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.7'}}
DEBUG:streamrip:Arguments from config: {'restrict_filenames': False, 'parent_folder': 'C:\\Users\\USER\\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:Loading metadata
DEBUG:streamrip:{'id': 119302924, 'readable': True, 'title': "Don't Let Me Down (feat. Daya)", 'title_short': "Don't Let Me Down (feat. Daya)", 'title_version': '', 'isrc': 'USQX91600011', 'link': 'https://www.deezer.com/track/119302924', 'share': 'https://www.deezer.com/track/119302924?utm_source=deezer&utm_content=track-119302924&utm_term=0_1639168673&utm_medium=web', 'duration': 208, 'track_position': 1, 'disk_number': 1, 'rank': 932983, 'release_date': '2016-06-24', 'explicit_lyrics': False, 'explicit_content_lyrics': 0, 'explicit_content_cover': 0, 'preview': 'https://cdns-preview-f.dzcdn.net/stream/c-fc32042d7f100c823bf560260e5db7af-6.mp3', 'bpm': 160.2, 'gain': -8.3, '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', 'DO', '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': 4104927, 'name': 'The Chainsmokers', 'link': 'https://www.deezer.com/artist/4104927', 'share': 'https://www.deezer.com/artist/4104927?utm_source=deezer&utm_content=artist-4104927&utm_term=0_1639168673&utm_medium=web', 'picture': 'https://api.deezer.com/artist/4104927/image', 'picture_small': 'https://e-cdns-images.dzcdn.net/images/artist/61871746a326aa46f5444dd69482364a/56x56-000000-80-0-0.jpg', 'picture_medium': 'https://e-cdns-images.dzcdn.net/images/artist/61871746a326aa46f5444dd69482364a/250x250-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/artist/61871746a326aa46f5444dd69482364a/500x500-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/artist/61871746a326aa46f5444dd69482364a/1000x1000-000000-80-0-0.jpg', 'radio': True, 'tracklist': 'https://api.deezer.com/artist/4104927/top?limit=50', 'type': 'artist', 'role': 'Main'}, {'id': 649162, 'name': 'Daya', 'link': 'https://www.deezer.com/artist/649162', 'share': 'https://www.deezer.com/artist/649162?utm_source=deezer&utm_content=artist-649162&utm_term=0_1639168673&utm_medium=web', 'picture': 'https://api.deezer.com/artist/649162/image', 'picture_small': 'https://e-cdns-images.dzcdn.net/images/artist/e4b2af91ca82bc3d86ad731b8c6eabbe/56x56-000000-80-0-0.jpg', 'picture_medium': 'https://e-cdns-images.dzcdn.net/images/artist/e4b2af91ca82bc3d86ad731b8c6eabbe/250x250-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/artist/e4b2af91ca82bc3d86ad731b8c6eabbe/500x500-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/artist/e4b2af91ca82bc3d86ad731b8c6eabbe/1000x1000-000000-80-0-0.jpg', 'radio': True, 'tracklist': 'https://api.deezer.com/artist/649162/top?limit=50', 'type': 'artist', 'role': 'Featured'}], 'md5_image': '900c088fb241de8000b5ed849eba8536', 'artist': {'id': 4104927, 'name': 'The Chainsmokers', 'link': 'https://www.deezer.com/artist/4104927', 'share': 'https://www.deezer.com/artist/4104927?utm_source=deezer&utm_content=artist-4104927&utm_term=0_1639168673&utm_medium=web', 'picture': 'https://api.deezer.com/artist/4104927/image', 'picture_small': 'https://e-cdns-images.dzcdn.net/images/artist/61871746a326aa46f5444dd69482364a/56x56-000000-80-0-0.jpg', 'picture_medium': 'https://e-cdns-images.dzcdn.net/images/artist/61871746a326aa46f5444dd69482364a/250x250-000000-80-0-0.jpg', 'picture_big': 'https://e-cdns-images.dzcdn.net/images/artist/61871746a326aa46f5444dd69482364a/500x500-000000-80-0-0.jpg', 'picture_xl': 'https://e-cdns-images.dzcdn.net/images/artist/61871746a326aa46f5444dd69482364a/1000x1000-000000-80-0-0.jpg', 'radio': True, 'tracklist': 'https://api.deezer.com/artist/4104927/top?limit=50', 'type': 'artist'}, 'album': {'id': 12424886, 'title': "Don't Let Me Down (feat. Daya)", 'link': 'https://www.deezer.com/album/12424886', 'cover': 'https://api.deezer.com/album/12424886/image', 'cover_small': 'https://e-cdns-images.dzcdn.net/images/cover/900c088fb241de8000b5ed849eba8536/56x56-000000-80-0-0.jpg', 'cover_medium': 'https://e-cdns-images.dzcdn.net/images/cover/900c088fb241de8000b5ed849eba8536/250x250-000000-80-0-0.jpg', 'cover_big': 'https://e-cdns-images.dzcdn.net/images/cover/900c088fb241de8000b5ed849eba8536/500x500-000000-80-0-0.jpg', 'cover_xl': 'https://e-cdns-images.dzcdn.net/images/cover/900c088fb241de8000b5ed849eba8536/1000x1000-000000-80-0-0.jpg', 'md5_image': '900c088fb241de8000b5ed849eba8536', 'release_date': '2016-02-05', 'tracklist': 'https://api.deezer.com/album/12424886/tracks', 'type': 'album'}, 'type': 'track'}
Downloading The Chainsmokers - Don't Let Me Down (feat. Daya)

DEBUG:streamrip:Track meta formatter {'tracknumber': 1, 'artist': 'The Chainsmokers', 'albumartist': None, 'composer': None, 'title': "Don't Let Me Down (feat. Daya)", 'albumcomposer': None}
DEBUG:streamrip:Formatter keys: <filter object at 0x0000024970022250>
DEBUG:streamrip:Formatted path: C:\Users\USER\StreamripDownloads\01. The Chainsmokers - Don't Let Me Down (feat. Daya).flac
DEBUG:streamrip:Downloading cover from https://e-cdns-images.dzcdn.net/images/cover/900c088fb241de8000b5ed849eba8536/500x500-000000-80-0-0.jpg
Cover |███████████████████████████████████████████████████████████████████████████████████████| 00:00 left at 9.68MB/s
DEBUG:streamrip:Download url http://dz.loaderapp.info/deezer/1411/https://api.deezer.com/track/119302924
Unable to stream The Chainsmokers - Don't Let Me Down (feat. Daya). Message: Internal Server Error - Cannot read properties of undefined (reading '0')
DEBUG:streamrip:Executing INSERT INTO failed_downloads (source, media_type, id) VALUES (?, ?, ?)
DEBUG:streamrip:Items to add: ('deezer', 'track', '119302924')
DEBUG:streamrip:UNIQUE constraint failed: failed_downloads.id

Config File

[downloads]
# Folder where tracks are downloaded to
folder = "C:\\Users\\USER\\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 = 2
# 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 = ""
# 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 = "C:\\Users\\USER\\AppData\\Local\\streamrip\\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 = "C:\\Users\\USER\\AppData\\Local\\streamrip\\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.7"

Operating System

Windows 10

streamrip version

Rip (version 1.8)

Screenshots and recordings

https://imgur.com/1CNDlP6.png

nathom commented 2 years ago

As the error message says, it is an internal issue. You just have to try again once their servers are back up.

MathewJake365 commented 2 years ago

Why did you close the issue? This couldn't be a problem on Deezer's side. I have been trying for days now. deezer.com is working as intended. Alternatives like deemix and d-fi are also working.