Skip to content

[BUG] Streamrip downloads lower quality that specified with max Tidal subscription. #981

Description

@flying-fox-1

Describe the bug

streamrip finds the highest quality but downloads the lower one: WARNING Failed to get manifest for 196435453. Retrying with lower quality. And yes i have Tidal premium

Command Used

rip -ndb -q 3 -vvv url https://tidal.com/track/196435453

Debug Traceback

[10:22:25] DEBUG    Showing all debug logs                                                                    cli.py:111
⠴ Resolving URLs...[10:22:28] DEBUG    {'id': 196435453, 'title': 'Nothing Else Matters', 'duration': 389, 'replayGain':       tidal.py:130
                    -8.23, 'peak': 0.988547, 'allowStreaming': True, 'streamReady': True, 'payToStream':
                    False, 'adSupportedStreamReady': True, 'djReady': True, 'stemReady': False,
                    'streamStartDate': '2021-09-10T00:00:00.000+0000', 'premiumStreamingOnly': False,
                    'trackNumber': 8, 'volumeNumber': 1, 'version': 'Remastered 2021', 'popularity': 85,
                    'copyright': '℗ 2021 Blackened Recordings Inc., under exclusive licence to Universal
                    International Music B.V.', 'bpm': 143, 'key': 'E', 'keyScale': 'MINOR', 'url':
                    'http://www.tidal.com/track/196435453', 'isrc': 'QMKHM1900008', 'editable': False,
                    'explicit': False, 'audioQuality': 'LOSSLESS', 'audioModes': ['STEREO'],
                    'mediaMetadata': {'tags': ['LOSSLESS', 'HIRES_LOSSLESS']}, 'upload': False,
                    'accessType': 'PUBLIC', 'spotlighted': False, 'ai': False, 'artist': {'id': 8405,
                    'name': 'Metallica', 'handle': None, 'type': 'MAIN', 'picture':
                    '0b6a87b1-54a4-4014-9ac2-a2c7b978ae19'}, 'artists': [{'id': 8405, 'name': 'Metallica',
                    'handle': None, 'type': 'MAIN', 'picture': '0b6a87b1-54a4-4014-9ac2-a2c7b978ae19'}],
                    'album': {'id': 196435443, 'title': 'Metallica (Remastered 2021)', 'cover':
                    'b48d21ef-2b65-4f2f-b41e-1223481fa6bf', 'vibrantColor': '#FFFFFF', 'videoCover': None},
                    'mixes': {'TRACK_MIX': '001739ec7e39b93e9ad7188fdc4cbf'}, 'lyrics': "[01:00.09] So
                    close, no matter how far\n[01:05.16] Couldn't be much more from the heart\n[01:10.42]
                    Forever trusting who we are\n[01:15.13] And nothing else matters\n[01:19.36]
                    \n[01:23.05] Never opened myself this way\n[01:27.90] Life is ours, we live it our
                    way\n[01:32.51] All these words, I don't just say\n[01:38.24] And nothing else
                    matters\n[01:45.10] Trust I seek and I find in you\n[01:50.84] Every day for us
                    something new\n[01:55.82] Open mind for a different view\n[02:00.77] And nothing else
                    matters\n[02:05.83] \n[02:08.31] Never cared for what they do\n[02:13.53] Never cared
                    for what they know\n[02:18.22] But I know\n[02:21.99] \n[02:24.64] So close no matter
                    how far\n[02:29.51] It couldn't be much more from the heart\n[02:35.15] Forever
                    trusting who we are\n[02:40.19] And nothing else matters\n[02:45.12] \n[02:47.50] Never
                    cared for what they do\n[02:52.78] Never cared for what they know\n[02:57.58] But I
                    know\n[03:00.14] \n[03:44.15] I never opened myself this way\n[03:49.44] Life is ours,
                    we live it our way\n[03:54.19] All these words, I don't just say\n[03:59.44] And
                    nothing else matters\n[04:06.61] Trust I seek and I find in you\n[04:12.19] Every day
                    for us something new\n[04:17.35] Open mind for a different view\n[04:22.42] And nothing
                    else matters\n[04:29.72] Never cared for what they say\n[04:34.74] Never cared for
                    games they play\n[04:39.78] Never cared for what they do\n[04:45.04] Never cared for
                    what they know\n[04:49.68] And I know, yeah-yeah\n[04:55.63] \n[05:23.94] So close, no
                    matter how far\n[05:29.14] Couldn't be much more from the heart\n[05:34.49] Forever
                    trusting who we are\n[05:39.19] No, nothing else matters\n[05:41.92] "}
⠋ Resolving URLs...           DEBUG    {'trackId': 196435453, 'assetPresentation': 'FULL', 'audioMode': 'STEREO',              tidal.py:163
                    'audioQuality': 'HI_RES_LOSSLESS', 'manifestMimeType': 'application/dash+xml',
                    'manifestHash': '+wefvGkFhQIXM8dLUUbguI2rM03I1JoS0kOKFd00olg=', 'manifest':
                    'PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz48TVBEIHhtbG5zPSJ1cm46bXBlZzpkYXNoOn
                    NjaGVtYTptcGQ6MjAxMSIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0Y
                    W5jZSIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOmNlbmM9InVybjpt
                    cGVnOmNlbmM6MjAxMyIgeHNpOnNjaGVtYUxvY2F0aW9uPSJ1cm46bXBlZzpkYXNoOnNjaGVtYTptcGQ6MjAxMSB
                    EQVNILU1QRC54c2QiIHByb2ZpbGVzPSJ1cm46bXBlZzpkYXNoOnByb2ZpbGU6aXNvZmYtbWFpbjoyMDExIiB0eX
                    BlPSJzdGF0aWMiIG1pbkJ1ZmZlclRpbWU9IlBUMy45NjhTIiBtZWRpYVByZXNlbnRhdGlvbkR1cmF0aW9uPSJQV
                    DZNMjguNzMzUyI+PFBlcmlvZCBpZD0iMCI+PEFkYXB0YXRpb25TZXQgaWQ9IjAiIGNvbnRlbnRUeXBlPSJhdWRp
                    byIgbWltZVR5cGU9ImF1ZGlvL21wNCIgbGFuZz0idW5kIiBncm91cD0ibWFpbiIgc2VnbWVudEFsaWdubWVudD0
                    idHJ1ZSI+PGF1ZGlvQ2hhbm5lbENvbmZpZ3VyYXRpb24gc2NoZW1lSWRVcmk9InVybjptcGVnOmRhc2g6MjMwMD
                    M6MzphdWRpb19jaGFubmVsX2NvbmZpZ3VyYXRpb246MjAxMSIgdmFsdWU9IjIiLz48Um9sZSBzY2hlbWVJZFVya
                    T0idXJuOm1wZWc6ZGFzaDpyb2xlOjIwMTEiIHZhbHVlPSJtYWluIi8+PEF1ZGlvQ2hhbm5lbENvbmZpZ3VyYXRp
                    b24gc2NoZW1lSWRVcmk9InVybjptcGVnOmRhc2g6MjMwMDM6MzphdWRpb19jaGFubmVsX2NvbmZpZ3VyYXRpb24
                    6MjAxMSIgdmFsdWU9IjIiLz48UmVwcmVzZW50YXRpb24gaWQ9IkZMQUNfSElSRVMsOTYwMDAsMjQiIGNvZGVjcz
                    0iZmxhYyIgYmFuZHdpZHRoPSIyMjg0MTI1IiBhdWRpb1NhbXBsaW5nUmF0ZT0iOTYwMDAiPjxTZWdtZW50VGVtc
                    GxhdGUgdGltZXNjYWxlPSI5NjAwMCIgaW5pdGlhbGl6YXRpb249Imh0dHBzOi8vc3AtYWQtZmEuYXVkaW8udGlk
                    YWwuY29tL21lZGlhdHJhY2tzL0dpc0lBeEluTmpBelptTTFaR1F6TVRJNVpURmtOemcwTm1JNU5UbGpNVFU0TkR
                    nMk1UUmZOakl1YlhBMElpQWRBQUNBUUNBQ0toQTd4NnE0X2wxVTJaMndTVEVUTnRwM01nVU5BQUNnUVEvMC5tcD
                    Q/dG9rZW49MTc4MDczNzc0OH5MMjFsWkdsaGRISmhZMnR6TDBkcGMwbEJlRWx1VG1wQmVscHRUVEZhUjFGNlRWU
                    kpOVnBVUm10T2VtY3dUbTFKTlU1VWJHcE5WRlUwVGtSbk1rMVVVbVpPYWtsMVlsaEJNRWxwUVdSQlFVTkJVVU5C
                    UTB0b1FUZDRObkUwWDJ3eFZUSmFNbmRUVkVWVVRuUndNMDFuVlU1QlFVTm5VVkV2S240ek1UTTNPRFprWmpFNFp
                    EVmlNRGhtTXpOaFlXRmhNek0xWXpaa1lUSXhNV0ptT1RkaE9UZzMiIG1lZGlhPSJodHRwczovL3NwLWFkLWZhLm
                    F1ZGlvLnRpZGFsLmNvbS9tZWRpYXRyYWNrcy9HaXNJQXhJbk5qQXpabU0xWkdRek1USTVaVEZrTnpnME5tSTVOV
                    GxqTVRVNE5EZzJNVFJmTmpJdWJYQTBJaUFkQUFDQVFDQUNLaEE3eDZxNF9sMVUyWjJ3U1RFVE50cDNNZ1VOQUFD
                    Z1FRLyROdW1iZXIkLm1wND90b2tlbj0xNzgwNzM3NzQ4fkwyMWxaR2xoZEhKaFkydHpMMGRwYzBsQmVFbHVUbXB
                    CZWxwdFRURmFSMUY2VFZSSk5WcFVSbXRPZW1jd1RtMUpOVTVVYkdwTlZGVTBUa1JuTWsxVVVtWk9ha2wxWWxoQk
                    1FbHBRV1JCUVVOQlVVTkJRMHRvUVRkNE5uRTBYMnd4VlRKYU1uZFRWRVZVVG5Sd00wMW5WVTVCUVVOblVWRXZLb
                    jR6TVRNM09EWmtaakU0WkRWaU1EaG1Nek5oWVdGaE16TTFZelprWVRJeE1XSm1PVGRoT1RnMyIgc3RhcnROdW1i
                    ZXI9IjEiPjxTZWdtZW50VGltZWxpbmU+PFMgZD0iMzgwOTI4IiByPSI5NiIvPjxTIGQ9IjM2ODM4NCIvPjwvU2V
                    nbWVudFRpbWVsaW5lPjwvU2VnbWVudFRlbXBsYXRlPjwvUmVwcmVzZW50YXRpb24+PC9BZGFwdGF0aW9uU2V0Pj
                    wvUGVyaW9kPjwvTVBEPg==', 'albumReplayGain': -8.23, 'albumPeakAmplitude': 0.98855,
                    'trackReplayGain': -4.8, 'trackPeakAmplitude': 0.988547, 'bitDepth': 24, 'sampleRate':
                    96000}
           WARNING  Failed to get manifest for 196435453. Retrying with lower quality.                      tidal.py:169
⠴ Resolving URLs...           DEBUG    {'trackId': 196435453, 'assetPresentation': 'FULL', 'audioMode': 'STEREO',              tidal.py:163
                    'audioQuality': 'HIGH', 'manifestMimeType': 'application/vnd.tidal.bts',
                    'manifestHash': 'N8qlPBowju9yii5bWfsprCwZUVjFr3TG+7ctSQMSBDQ=', 'manifest':
                    'eyJtaW1lVHlwZSI6ImF1ZGlvL21wNCIsImNvZGVjcyI6Im1wNGEuNDAuMiIsImVuY3J5cHRpb25UeXBlIjoiTk
                    9ORSIsInVybHMiOlsiaHR0cHM6Ly9hbXotcHItZmEuYXVkaW8udGlkYWwuY29tL2E0YWY3N2MyMWI3ZDU0MWNhZ
                    GJkMDEyOTY2MWQzNWRmXzM3Lm1wND90b2tlbj0xNzgwNzM3NzQ5fllqTTFNV05sWXpWaFpUWXlabUV6WXpOaE5X
                    RTRZamM1WWpCbE5HSXpPVFkwT0dJd1lUTXdNQT09Il19', 'albumReplayGain': -8.23,
                    'albumPeakAmplitude': 0.98855, 'trackReplayGain': -4.8, 'trackPeakAmplitude': 0.988547}
           DEBUG    {'mimeType': 'audio/mp4', 'codecs': 'mp4a.40.2', 'encryptionType': 'NONE', 'urls':      tidal.py:174
                    ['https://amz-pr-fa.audio.tidal.com/a4af77c21b7d541cadbd0129661d35df_37.mp4?token=17807
                    37749~YjM1MWNlYzVhZTYyZmEzYzNhNWE4Yjc5YjBlNGIzOTY0OGIwYTMwMA==']}
[10:22:30] DEBUG    Tagging with [('©nam', 'Nothing Else Matters (Remastered 2021)'), ('©ART',             tagger.py:254
                    'Metallica'), ('©alb', 'Metallica (Remastered 2021)'), ('aART', 'Metallica'), ('©day',
                    '2021'), ('©gen', ''), ('©lyr', "[01:00.09] So close, no matter how far\n[01:05.16]
                    Couldn't be much more from the heart\n[01:10.42] Forever trusting who we
                    are\n[01:15.13] And nothing else matters\n[01:19.36] \n[01:23.05] Never opened myself
                    this way\n[01:27.90] Life is ours, we live it our way\n[01:32.51] All these words, I
                    don't just say\n[01:38.24] And nothing else matters\n[01:45.10] Trust I seek and I
                    find in you\n[01:50.84] Every day for us something new\n[01:55.82] Open mind for a
                    different view\n[02:00.77] And nothing else matters\n[02:05.83] \n[02:08.31] Never
                    cared for what they do\n[02:13.53] Never cared for what they know\n[02:18.22] But I
                    know\n[02:21.99] \n[02:24.64] So close no matter how far\n[02:29.51] It couldn't be
                    much more from the heart\n[02:35.15] Forever trusting who we are\n[02:40.19] And
                    nothing else matters\n[02:45.12] \n[02:47.50] Never cared for what they do\n[02:52.78]
                    Never cared for what they know\n[02:57.58] But I know\n[03:00.14] \n[03:44.15] I never
                    opened myself this way\n[03:49.44] Life is ours, we live it our way\n[03:54.19] All
                    these words, I don't just say\n[03:59.44] And nothing else matters\n[04:06.61] Trust I
                    seek and I find in you\n[04:12.19] Every day for us something new\n[04:17.35] Open
                    mind for a different view\n[04:22.42] And nothing else matters\n[04:29.72] Never cared
                    for what they say\n[04:34.74] Never cared for games they play\n[04:39.78] Never cared
                    for what they do\n[04:45.04] Never cared for what they know\n[04:49.68] And I know,
                    yeah-yeah\n[04:55.63] \n[05:23.94] So close, no matter how far\n[05:29.14] Couldn't be
                    much more from the heart\n[05:34.49] Forever trusting who we are\n[05:39.19] No,
                    nothing else matters\n[05:41.92] "), ('cprt', '℗ 2021 Blackened Recordings Inc., under
                    exclusive licence to Universal International Music B.V.'), ('trkn', [(8, 1)]),
                    ('disk', [(1, 1)]), ('----:com.apple.iTunes:ISRC', b'QMKHM1900008')]
────────────────────────────────── Downloading Nothing Else Matters (Remastered 2021) ──────────────────────────────────
           DEBUG    Removing dirs {'C:\\Users\\grego\\StreamripDownloads\\__artwork'}                      artwork.py:19

A new version of streamrip v2.1.0 is available! Run pip3 install streamrip --upgrade to update.


                                                  What's New in v2.2.0

                                                       Bug Fixes

 • Fix Tidal device authorization — Updated client credentials that were causing OAuth2 invalid_client errors (#932)
 • Fix SoundCloud download corruption — Segments downloaded concurrently were being concatenated in wrong order,
   producing garbled audio (#909)
 • Fix duplicate download folder names — Resolved issue where albums could create duplicate directories (#891)
 • Fix Deezer URL parsing — Updated for new Deezer link format (#820, #824)
 • Fallback to lower quality — When the desired quality is unavailable for a track, streamrip now attempts lower
   qualities instead of failing (#879)

                                                        Features

 • Track ID in filename formatter — {id} is now available as a variable in track_format (#923)

                                                      Maintenance

 • Moved test dependencies (pytest-mock, pytest-asyncio) to dev-dependencies (#886)
 • Bumped urllib3 to 2.6.3 (fixes 3 high-severity CVEs) (#927)

Config File

[downloads]
# Folder where tracks are downloaded to
folder = "C:\\Users\\grego\\StreamripDownloads"
# Put Qobuz albums in a 'Qobuz' folder, Tidal albums in 'Tidal' etc.
source_subdirectories = false
# Put tracks in an album with 2 or more discs into a subfolder named `Disc N` 
disc_subdirectories = true
# 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.
concurrency = false
# 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
# Set to -1 for no limit
max_connections = 6
# Max number of API requests per source to handle per minute
# Set to -1 for no limit
requests_per_minute = 60
# Verify SSL certificates for API connections
# Set to false if you encounter SSL certificate verification errors (not recommended)
verify_ssl = true

[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

# Authenticate to Qobuz using auth token? Value can be true/false only
use_auth_token = false
# Enter your userid if the above use_auth_token is set to true, else enter your email
email_or_userid = ""
# Enter your auth token if the above use_auth_token is set to true, else enter the md5 hash of your plaintext password
password_or_token = ""
# 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 = 208483793
country_code = "SI"
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 = 1780747003.5822446

[deezer]
# 0, 1, or 2
# This only applies to paid Deezer subscriptions. Those using deezloader
# are automatically limited to quality = 1
quality = 2
# If the target quality is not available, fallback to best quality available
# 0 = MP3_128, 1 = MP3_320, 2 = FLAC
lower_quality_if_not_available = true
# 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 = "C:\\Users\\grego\\StreamripDownloads\\YouTubeVideos"

[database]
# Create a database that contains all the track IDs downloaded so far
# Any time a track logged in the database is requested, it is skipped
# This can be disabled temporarily with the --no-db flag
downloads_enabled = true
# Path to the downloads database 
downloads_path = "C:\\Users\\grego\\AppData\\Roaming\\streamrip\\downloads.db"
# If a download fails, the item ID is stored here. Then, `rip repair` can be
# called to retry the downloads
failed_downloads_enabled = true
failed_downloads_path = "C:\\Users\\grego\\AppData\\Roaming\\streamrip\\failed_downloads.db"

# Convert tracks to a codec after downloading them.
[conversion]
enabled = false
# FLAC, ALAC, OPUS, MP3, VORBIS, or AAC
codec = "FLAC"
# 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.
# This will also be applied to other sources, but is not guaranteed to work correctly
[qobuz_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.
embed_size = "large"
# If this is set to a value > 0, max(width, height) of the embedded art will be set to this value in pixels
# Proportions of the image will remain the same
embed_max_width = -1
# Save the cover image at the highest quality as a seperate jpg file
save_artwork = true
# If this is set to a value > 0, max(width, height) of the saved art will be set to this value in pixels
# Proportions of the image will remain the same
saved_max_width = -1


[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
# If part of a playlist, sets the `tracknumber` field in the metadata to the track's 
# position in the playlist instead of its position in its album
renumber_playlist_tracks = 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",
# "id", and "albumcomposer"
folder_format = "{albumartist} - {title} ({year}) [{container}] [{bit_depth}B-{sampling_rate}kHz]"
# Available keys: "id", "tracknumber", "artist", "albumartist", "composer", "title",
# and "albumcomposer", "explicit"
track_format = "{tracknumber:02}. {artist} - {title}{explicit}"
# Only allow printable ASCII characters in filenames.
restrict_characters = false
# Truncate the filename if it is greater than this number of characters
# Setting this to false may cause downloads to fail on some systems
truncate_to = 120

# 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 = ""

[cli]
# Print "Downloading {Album name}" etc. to screen
text_output = true
# Show resolve, download progress bars
progress_bars = true
# The maximum number of search results to show in the interactive menu
max_search_results = 100

[misc]
# Metadata to identify this config file. Do not change.
version = "2.2.0"
# Print a message if a new version of streamrip is available 
check_for_updates = true

Operating System

Windows 11, version 25H2

streamrip version

rip, version 2.2.0

Screenshots and recordings

No response

Additional context

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions