nathom / streamrip

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

[BUG] Qobuz InvalidAppSecretError #744

Closed bokkaebi closed 1 month ago

bokkaebi commented 1 month ago

Describe the bug

Encounters InvalidAppSecretError whenever using Qobuz, even though valid userid and token is in config

Command Used

rip search qobuz playlist chill

Debug Traceback

[22:52:16] DEBUG    Showing all debug logs                                         cli.py:102
[22:52:17] DEBUG    Raw request signature:                                       qobuz.py:414
                    trackgetFileUrlformat_id27intentstreamtrack_id19512574172770
                    7937.029917210b251c286cfbf64d6b7105f253d9a2e
           DEBUG    Hashed request signature: 549bc98ae806bd398b210c027b269f11   qobuz.py:416
           DEBUG    api_request: endpoint=track/getFileUrl,                      qobuz.py:431
                    params={'request_ts': 1727707937.0299172, 'request_sig':
                    '549bc98ae806bd398b210c027b269f11', 'track_id': '19512574',
                    'format_id': 27, 'intent': 'stream'}
           DEBUG    Raw request signature:                                       qobuz.py:414
                    trackgetFileUrlformat_id27intentstreamtrack_id19512574172770
                    7937.0349874979549437fcc4a3faad4867b5cd25dcb
           DEBUG    Hashed request signature: c65b17e9124b7a7e256eab8bb71de2b3   qobuz.py:416
           DEBUG    api_request: endpoint=track/getFileUrl,                      qobuz.py:431
                    params={'request_ts': 1727707937.0349874, 'request_sig':
                    'c65b17e9124b7a7e256eab8bb71de2b3', 'track_id': '19512574',
                    'format_id': 27, 'intent': 'stream'}
⠴ Logging into qobuz           WARNING  Got status 401 when testing secret
        qobuz.py:402
           DEBUG    Removing dirs set()                                         artwork.py:19
╭──────────────────────────── Traceback (most recent call last) ────────────────────────────╮
│ /home/zjm/.local/bin/rip:8 in <module>                                                    │
│                                                                                           │
│   5 from streamrip.rip import rip                                                         │
│   6 if __name__ == '__main__':                                                            │
│   7 │   sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])                  │
│ ❱ 8 │   sys.exit(rip())                                                                   │
│   9                                                                                       │
│                                                                                           │
│ ╭─────────────────────────── locals ────────────────────────────╮                         │
│ │  re = <module 're' from '/usr/lib/python3.11/re/__init__.py'> │                         │
│ │ rip = <HelpColorsGroup rip>                                   │                         │
│ │ sys = <module 'sys' (built-in)>                               │                         │
│ ╰───────────────────────────────────────────────────────────────╯                         │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/click/core.py:1157 in __call__              │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/click/core.py:1078 in main                  │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/click/core.py:1688 in invoke                │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/click/core.py:1434 in invoke                │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/click/core.py:783 in invoke                 │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/click/decorators.py:33 in new_func          │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/streamrip/rip/cli.py:28 in wrapper          │
│                                                                                           │
│    25 def coro(f):                                                                        │
│    26 │   @wraps(f)                                                                       │
│    27 │   def wrapper(*args, **kwargs):                                                   │
│ ❱  28 │   │   return asyncio.run(f(*args, **kwargs))                                      │
│    29 │                                                                                   │
│    30 │   return wrapper                                                                  │
│    31                                                                                     │
│                                                                                           │
│ ╭───────────────────────── locals ──────────────────────────╮                             │
│ │   args = (<click.core.Context object at 0x7f3dd2bab890>,) │                             │
│ │      f = <function search at 0x7f3dd035e5c0>              │                             │
│ │ kwargs = {                                                │                             │
│ │          │   'source': 'qobuz',                           │                             │
│ │          │   'media_type': 'playlist',                    │                             │
│ │          │   'query': 'chill',                            │                             │
│ │          │   'first': False,                              │                             │
│ │          │   'output_file': None,                         │                             │
│ │          │   'num_results': 100                           │                             │
│ │          }                                                │                             │
│ ╰───────────────────────────────────────────────────────────╯                             │
│                                                                                           │
│ /usr/lib/python3.11/asyncio/runners.py:188 in run                                         │
│                                                                                           │
│   185 │   │   │   "asyncio.run() cannot be called from a running event loop")             │
│   186 │                                                                                   │
│   187 │   with Runner(debug=debug) as runner:                                             │
│ ❱ 188 │   │   return runner.run(main)                                                     │
│   189                                                                                     │
│   190                                                                                     │
│   191 def _cancel_all_tasks(loop):                                                        │
│                                                                                           │
│ ╭────────────────────────── locals ──────────────────────────╮                            │
│ │  debug = None                                              │                            │
│ │   main = <coroutine object search at 0x7f3dd06620c0>       │                            │
│ │ runner = <asyncio.runners.Runner object at 0x7f3dd036dc90> │                            │
│ ╰────────────────────────────────────────────────────────────╯                            │
│                                                                                           │
│ /usr/lib/python3.11/asyncio/runners.py:120 in run                                         │
│                                                                                           │
│   117 │   │   try:                                                                        │
│   118 │   │   │   if self._set_event_loop:                                                │
│   119 │   │   │   │   events.set_event_loop(self._loop)                                   │
│ ❱ 120 │   │   │   return self._loop.run_until_complete(task)                              │
│   121 │   │   except exceptions.CancelledError:                                           │
│   122 │   │   │   if self._interrupt_count > 0:                                           │
│   123 │   │   │   │   uncancel = getattr(task, "uncancel", None)                          │
│                                                                                           │
│ ╭─────────────────────────────────────── locals ────────────────────────────────────────╮ │
│ │        context = <_contextvars.Context object at 0x7f3dd0192540>                      │ │
│ │           coro = <coroutine object search at 0x7f3dd06620c0>                          │ │
│ │           self = <asyncio.runners.Runner object at 0x7f3dd036dc90>                    │ │
│ │ sigint_handler = functools.partial(<bound method Runner._on_sigint of                 │ │
│ │                  <asyncio.runners.Runner object at 0x7f3dd036dc90>>, main_task=<Task  │ │
│ │                  finished name='Task-1' coro=<search() done, defined at               │ │
│ │                  /home/zjm/.local/lib/python3.11/site-packages/streamrip/rip/cli.py:… │ │
│ │                  exception=InvalidAppSecretError(['10b251c286cfbf64d6b7105f253d9a2e', │ │
│ │                  '979549437fcc4a3faad4867b5cd25dcb'])>)                               │ │
│ │           task = <Task finished name='Task-1' coro=<search() done, defined at         │ │
│ │                  /home/zjm/.local/lib/python3.11/site-packages/streamrip/rip/cli.py:… │ │
│ │                  exception=InvalidAppSecretError(['10b251c286cfbf64d6b7105f253d9a2e', │ │
│ │                  '979549437fcc4a3faad4867b5cd25dcb'])>                                │ │
│ ╰───────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                           │
│ /usr/lib/python3.11/asyncio/base_events.py:650 in run_until_complete                      │
│                                                                                           │
│    647 │   │   if not future.done():                                                      │
│    648 │   │   │   raise RuntimeError('Event loop stopped before Future completed.')      │
│    649 │   │                                                                              │
│ ❱  650 │   │   return future.result()                                                     │
│    651 │                                                                                  │
│    652 │   def stop(self):                                                                │
│    653 │   │   """Stop running the event loop.                                            │
│                                                                                           │
│ ╭─────────────────────────────────────── locals ────────────────────────────────────────╮ │
│ │   future = <Task finished name='Task-1' coro=<search() done, defined at               │ │
│ │            /home/zjm/.local/lib/python3.11/site-packages/streamrip/rip/cli.py:327>    │ │
│ │            exception=InvalidAppSecretError(['10b251c286cfbf64d6b7105f253d9a2e',       │ │
│ │            '979549437fcc4a3faad4867b5cd25dcb'])>                                      │ │
│ │ new_task = False                                                                      │ │
│ │     self = <_UnixSelectorEventLoop running=False closed=True debug=False>             │ │
│ ╰───────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/streamrip/rip/cli.py:371 in search          │
│                                                                                           │
│   368 │   │   │   │   │   source, media_type, query, output_file, num_results             │
│   369 │   │   │   │   )                                                                   │
│   370 │   │   │   else:                                                                   │
│ ❱ 371 │   │   │   │   await main.search_interactive(source, media_type, query)            │
│   372 │   │   │   await main.resolve()                                                    │
│   373 │   │   │   await main.rip()                                                        │
│   374                                                                                     │
│                                                                                           │
│ ╭───────────────────────────── locals ─────────────────────────────╮                      │
│ │         cfg = <streamrip.config.Config object at 0x7f3dd15929d0> │                      │
│ │         ctx = <click.core.Context object at 0x7f3dd2bab890>      │                      │
│ │       first = False                                              │                      │
│ │        main = <streamrip.rip.main.Main object at 0x7f3dd0191fd0> │                      │
│ │  media_type = 'playlist'                                         │                      │
│ │ num_results = 100                                                │                      │
│ │ output_file = None                                               │                      │
│ │       query = 'chill'                                            │                      │
│ │      source = 'qobuz'                                            │                      │
│ ╰──────────────────────────────────────────────────────────────────╯                      │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/streamrip/rip/main.py:168 in                │
│ search_interactive                                                                        │
│                                                                                           │
│   165 │   │   await asyncio.gather(*[item.rip() for item in self.media])                  │
│   166 │                                                                                   │
│   167 │   async def search_interactive(self, source: str, media_type: str, query: str):   │
│ ❱ 168 │   │   client = await self.get_logged_in_client(source)                            │
│   169 │   │                                                                               │
│   170 │   │   with console.status(f"[bold]Searching {source}", spinner="dots"):           │
│   171 │   │   │   pages = await client.search(media_type, query, limit=100)               │
│                                                                                           │
│ ╭──────────────────────────── locals ─────────────────────────────╮                       │
│ │ media_type = 'playlist'                                         │                       │
│ │      query = 'chill'                                            │                       │
│ │       self = <streamrip.rip.main.Main object at 0x7f3dd0191fd0> │                       │
│ │     source = 'qobuz'                                            │                       │
│ ╰─────────────────────────────────────────────────────────────────╯                       │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/streamrip/rip/main.py:147 in                │
│ get_logged_in_client                                                                      │
│                                                                                           │
│   144 │   │   │   else:                                                                   │
│   145 │   │   │   │   with console.status(f"[cyan]Logging into {source}", spinner="dots") │
│   146 │   │   │   │   │   # Log into client using credentials from config                 │
│ ❱ 147 │   │   │   │   │   await client.login()                                            │
│   148 │   │                                                                               │
│   149 │   │   assert client.logged_in                                                     │
│   150 │   │   return client                                                               │
│                                                                                           │
│ ╭────────────────────────────────── locals ──────────────────────────────────╮            │
│ │   client = <streamrip.client.qobuz.QobuzClient object at 0x7f3dd036d510>   │            │
│ │ prompter = <streamrip.rip.prompter.QobuzPrompter object at 0x7f3dd0f7bcd0> │            │
│ │     self = <streamrip.rip.main.Main object at 0x7f3dd0191fd0>              │            │
│ │   source = 'qobuz'                                                         │            │
│ ╰────────────────────────────────────────────────────────────────────────────╯            │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/streamrip/client/qobuz.py:166 in login      │
│                                                                                           │
│   163 │   │   │   f.set_modified()                                                        │
│   164 │   │                                                                               │
│   165 │   │   self.session.headers.update({"X-App-Id": c.app_id})                         │
│ ❱ 166 │   │   self.secret = await self._get_valid_secret(c.secrets)                       │
│   167 │   │                                                                               │
│   168 │   │   if c.use_auth_token:                                                        │
│   169 │   │   │   params = {                                                              │
│                                                                                           │
│ ╭─────────────────────────────────────── locals ────────────────────────────────────────╮ │
│ │    c = QobuzConfig(                                                                   │ │
│ │        │   use_auth_token=True,                                                       │ │
│ │        │   email_or_userid='3228063',                                                 │ │
│ │        │                                                                              │ │
│ │        password_or_token='**********************************************************… │ │
│ │        │   app_id='*********',                                                        │ │
│ │        │   quality=3,                                                                 │ │
│ │        │   download_booklets=True,                                                    │ │
│ │        │   secrets=['10b251c286cfbf64d6b7105f253d9a2e',                               │ │
│ │        '979549437fcc4a3faad4867b5cd25dcb']                                            │ │
│ │        )                                                                              │ │
│ │ self = <streamrip.client.qobuz.QobuzClient object at 0x7f3dd036d510>                  │ │
│ ╰───────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                           │
│ /home/zjm/.local/lib/python3.11/site-packages/streamrip/client/qobuz.py:392 in            │
│ _get_valid_secret                                                                         │
│                                                                                           │
│   389 │   │   working_secrets = [r for r in results if r is not None]                     │
│   390 │   │                                                                               │
│   391 │   │   if len(working_secrets) == 0:                                               │
│ ❱ 392 │   │   │   raise InvalidAppSecretError(secrets)                                    │
│   393 │   │                                                                               │
│   394 │   │   return working_secrets[0]                                                   │
│   395                                                                                     │
│                                                                                           │
│ ╭─────────────────────────────────────── locals ────────────────────────────────────────╮ │
│ │         results = [None, None]                                                        │ │
│ │         secrets = ['10b251c286cfbf64d6b7105f253d9a2e',                                │ │
│ │                   '979549437fcc4a3faad4867b5cd25dcb']                                 │ │
│ │            self = <streamrip.client.qobuz.QobuzClient object at 0x7f3dd036d510>       │ │
│ │ working_secrets = []                                                                  │ │
│ ╰───────────────────────────────────────────────────────────────────────────────────────╯ │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
InvalidAppSecretError: ['10b251c286cfbf64d6b7105f253d9a2e',
'979549437fcc4a3faad4867b5cd25dcb']

Config File

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

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

[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 = true
# 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 = "***_De4lkbCDaj21fDNXg"
# Do not change
app_id = "950096963"
# Do not change
secrets = ["10b251c286cfbf64d6b7105f253d9a2e", "979549437fcc4a3faad4867b5cd25dcb"]

[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 = 200914958
country_code = "NZ"
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 = 1728312376.7948754

[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 = "/home/***/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 = "/home/***/.config/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 = "/home/***/.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.
# 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: "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 = "deezer"
# If no results were found with the primary source, the item is searched for 
# on this one.
fallback_source = "tidal"

[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.0.3"
# Print a message if a new version of streamrip is available 
check_for_updates = true

Operating System

Linux

streamrip version

2.0.5

Screenshots and recordings

No response

Additional context

No response

kauespacki commented 1 month ago

same. yesterday it was working just fine, but today came this error

Undefined3301 commented 1 month ago

Same here :(

Seemingly something changed with Qobuz api

EddyMexico commented 1 month ago

Same here :(

Seemingly something changed with Qobuz api

I also have this problem. Unlikely that this is related to the API though. I use a different tool on windows (QBdLX) and it seems to work fine.

korotkov13 commented 1 month ago

same to me

MarantzEversolo commented 1 month ago

Same problem here

Wamy-Dev commented 1 month ago

same here

satxSPURS commented 1 month ago

so it's not just me

Wamy-Dev commented 1 month ago

@nathom any idea what the issue could be? I checked the spoofer and it seems to be still working. They must be doing some additional check of some kind now.

OothecaPickle commented 1 month ago

the request that checks the secrets now requires a valid X-User-Auth-Token header

checking the secrets after logging in to Qobuz and setting the auth token header resolves the issue

jasker5183 commented 1 month ago

Thanks for the fix @OothecaPickle!

MarantzEversolo commented 1 month ago

This fix is not working for me, i still have the same problem.

korotkov13 commented 1 month ago

This fix is not working for me, i still have the same problem.

it works fine in my case(macos). download file and replace it in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/

MarantzEversolo commented 1 month ago

This fix is not working for me, i still have the same problem.

it works fine in my case(macos). download file and replace it in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/

I have replaced the file in Linux Fedora but i still got the same result/error.

5 from streamrip.rip import rip │ │ 6 if name == 'main': │ │ 7 │ sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0]) │ │ ❱ 8 │ sys.exit(rip()) │ │ 9 │ │ │ │ /usr/lib/python3.12/site-packages/click/core.py:1157 in call │ │ │ │ ... 13 frames hidden ... │ │ │ │ /home/gerdy/.local/lib/python3.12/site-packages/streamrip/client/qobuz.py:16 │ │ 6 in login │ │ │ │ 163 │ │ │ f.set_modified() │ │ 164 │ │ │ │ 165 │ │ self.session.headers.update({"X-App-Id": c.app_id}) │ │ ❱ 166 │ │ self.secret = await self._get_valid_secret(c.secrets) │ │ 167 │ │ │ │ 168 │ │ if c.use_auth_token: │ │ 169 │ │ │ params = { │ │ │ │ /home/gerdy/.local/lib/python3.12/site-packages/streamrip/client/qobuz.py:39 │ │ 2 in _get_valid_secret │ │ │ │ 389 │ │ working_secrets = [r for r in results if r is not None] │ │ 390 │ │ │ │ 391 │ │ if len(working_secrets) == 0: │ │ ❱ 392 │ │ │ raise InvalidAppSecretError(secrets) │ │ 393 │ │ │ │ 394 │ │ return working_secrets[0] │ │ 395 │ ╰──────────────────────────────────────────────────────────────────────────────╯ InvalidAppSecretError: ['10b251c286cfbf64d6b7105f253d9a2e', '979549437fcc4a3faad4867b5cd25dcb']

MarantzEversolo commented 1 month ago

This fix is not working for me, i still have the same problem.

it works fine in my case(macos). download file and replace it in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/

i also replaced the file on my Mac but still I have the same issue.

AllKind commented 1 month ago

Thanks @OothecaPickle - the fix works for me (Linux Mint 22).

korotkov13 commented 1 month ago

This fix is not working for me, i still have the same problem.

it works fine in my case(macos). download file and replace it in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/

i also replaced the file on my Mac but still I have the same issue.

Have you used new arls? try to replace config file with new one (/Library/Application Support/streamrip/config.toml)

Tom4tot commented 1 month ago

This fix is not working for me, i still have the same problem.

it works fine in my case(macos). download file and replace it in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/

Thanks a lot, it worked for me. Had to replace the qobuz.py file in here (Windows 11): C:\Users\XXX\AppData\Roaming\Python\Python312\site-packages\streamrip\client

MarantzEversolo commented 1 month ago

This fix is not working for me, i still have the same problem.

it works fine in my case(macos). download file and replace it in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/

i also replaced the file on my Mac but still I have the same issue.

Have you used new arls? try to replace config file with new one (/Library/Application Support/streamrip/config.toml)

i have replaced the config.toml file i also deinstalled stream rip and reinstalled it on Fedora and macOS both have the same results it does not work .

punowo commented 1 month ago

To anyone still confused. You have to manually do the changes because you're probably reinstalling or upgrading the main streamrip repository which doesn't have the changes yet.

So just find qobuz.py and then add and remove a line follwing the diff posted previously. https://github.com/OothecaPickle/streamrip/commit/86a3adbf452800942e985e21f0fb55caf6da5f07

MarantzEversolo commented 1 month ago

Problem solved I got it working it was my mistake. ;-)

hekateshawk commented 1 month ago

THANK YOU @OothecaPickle IT WORKED

satxSPURS commented 1 month ago

changed those lines and works again.

AsphaltJ commented 1 month ago

I cannot find qobuz.py in library (MacOS) via Finder or Terminal even if the given path is: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/streamrip/client/qobuz.py Somebody could help? Thanks

punowo commented 1 month ago

I cannot find qobuz.py in library (MacOS) via Finder or Terminal even if the given path is: /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/streamrip/client/qobuz.py Somebody could help? Thanks

Sorry but are you sure the file is there ? How did you install python ? For example I use pyenv.

❯ fd -H qobuz.py
.pyenv/versions/3.12.6/lib/python3.12/site-packages/streamrip/client/qobuz.py
Jodel-D18 commented 1 month ago

Thanks to OothecaPickle from me too. Works on Mint 21.3.

nothing2obvi commented 1 month ago

Thank you, @OothecaPickle!

TheParaTiger commented 1 month ago

Thank you! The fix fixed it on Linux Mint 22 :3 I was already wondering if Qobuz managed to completely brake any downloader with that change but luckily this isn't the case xD

hexahigh commented 1 month ago

@OothecaPickle You should make a PR so your code can be merged into the Streamrip repo

Jeff254 commented 1 month ago

This fix is not working for me, i still have the same problem.

it works fine in my case(macos). download file and replace it in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/

Thanks a lot, it worked for me. Had to replace the qobuz.py file in here (Windows 11): C:\Users\XXX\AppData\Roaming\Python\Python312\site-packages\streamrip\client

I have no such folder on windows 10..

punowo commented 1 month ago

@Jeff254 Just update to the latest commit on dev.

drumttocs8 commented 1 month ago

the request that checks the secrets now requires a valid X-User-Auth-Token header

checking the secrets after logging in to Qobuz and setting the auth token header resolves the issue

Thanks for the fix- worth releasing a new version with this.

shiquda commented 1 month ago

This fix is not working for me, i still have the same problem.这个修复方法对我没用,我还是有同样的问题。

it works fine in my case(macos). download file and replace it in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/下载文件并替换/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/中的文件。

Thanks a lot, it worked for me. Had to replace the qobuz.py file in here (Windows 11): C:\Users\XXX\AppData\Roaming\Python\Python312\site-packages\streamrip\client非常感谢,我成功了。我必须替换这里的 qobuz.py 文件(Windows 11):C:\Users\XXX\AppData\Roaming\Python\Python312\site-packages\streamrip\client

I have no such folder on windows 10..我在 Windows 10 上没有这样的文件夹。

You may check path like this:

C:\Users\XXXX\appdata\local\programs\python\pythonxxx\lib\site-packages\streamrip
nothing2obvi commented 3 weeks ago

The fix seems to work but I keep getting ClientPayloadError and TimeoutError.

JoshuaVandaele commented 3 weeks ago

@Jeff254 Just update to the latest commit on dev.

Are you aware of a simple way to do this on the AUR package without breaking paru?

barraIhsan commented 2 weeks ago

@Jeff254 Just update to the latest commit on dev.

Are you aware of a simple way to do this on the AUR package without breaking paru?

yeah the package on AUR only the stable one, not the -git one. I might create one tho if its allowed. You can find the files in /usr/lib/python3.12/site-packages/streamrip/client/qobuz.py

Jeff254 commented 5 days ago

This fix is not working for me, i still have the same problem.

it works fine in my case(macos). download file and replace it in /Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/streamrip/client/

Thanks a lot, it worked for me. Had to replace the qobuz.py file in here (Windows 11): C:\Users\XXX\AppData\Roaming\Python\Python312\site-packages\streamrip\client

I have no such folder on windows 10..

Found it under the following Path in Windows 10: C:\Users\xxxx\AppData\Local\Programs\Python\Python312\Lib\site-packages\streamrip\client