streamrip icon indicating copy to clipboard operation
streamrip copied to clipboard

[AssertionError] Tidal Mix URL returns unexpected media_type

Open nuggetato opened this issue 5 months ago • 1 comments

Describe the bug

When attempting to download a Tidal mix using the rip command, an AssertionError is raised due to the media type returned not being one of the expected MEDIA_TYPES.

It appears that the media type for Tidal mixes is not currently handled, which causes the assertion in core.py line 201 to fail.

Command Used

rip url https://tidal.com/mix/001e5116e445cd5c76b5bb2804caeb

Debug Traceback

/Users/thomasdolahenty/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
Logged into Tidal

  AssertionError

  

  at ~/Library/Python/3.9/lib/python/site-packages/rip/core.py:201 in handle_item
      197│         if media_type not in MEDIA_TYPES:
      198│             if "playlist" in media_type:  # for SoundCloud
      199│                 media_type = "playlist"
      200│ 
    → 201│         assert media_type in MEDIA_TYPES, media_type
      202│         item = MEDIA_CLASS[media_type](client=client, id=item_id)
      203│         self.append(item)
      204│ 
      205│     def _get_download_args(self) -> dict:

Config File

-

Operating System

Mac

streamrip version

1.9.7

Screenshots and recordings

No response

Additional context

No response

nuggetato avatar Jul 17 '25 00:07 nuggetato

I have also tried reinstalling streamrip, and logging into tidal again with no success.

nuggetato avatar Jul 17 '25 01:07 nuggetato