Skip to content

[BUG] Error 404 on certain songs when used in conjunction with zotify #280

@FISSI0N

Description

@FISSI0N

I hope this is the right place to mention this bug, as I found it using zotify (and reported it there too: zotify-dev/zotify#195 ). Please delete if it's the wrong place to report too, even though it seems to be connected to librespot's init.py file:

Track_ID: 1wPhVZMt6eIkGxcGBX6L2S


404

        [∙●∙] Preparing download... Traceback (most recent call last):
  File "C:\Python 3\Lib\site-packages\zotify\track.py", line 225, in download_track
    stream = Zotify.get_content_stream(track, Zotify.DOWNLOAD_QUALITY)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python 3\Lib\site-packages\zotify\zotify.py", line 53, in get_content_stream
    return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python 3\Lib\site-packages\librespot\audio\__init__.py", line 723, in load
    return self.load_track(playable_id, audio_quality_picker, preload,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python 3\Lib\site-packages\librespot\audio\__init__.py", line 784, in load_track
    return self.load_stream(file, track, None, preload, halt_listener)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python 3\Lib\site-packages\librespot\audio\__init__.py", line 738, in load_stream
    return CdnFeedHelper.load_track(self.__session, track, file,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python 3\Lib\site-packages\librespot\audio\__init__.py", line 340, in load_track
    streamer = session.cdn().stream_file(file, key, url, halt_listener)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python 3\Lib\site-packages\librespot\audio\__init__.py", line 439, in stream_file
    return CdnManager.Streamer(
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Python 3\Lib\site-packages\librespot\audio\__init__.py", line 562, in __init__
    response = self.request(range_start=0,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python 3\Lib\site-packages\librespot\audio\__init__.py", line 623, in request
    raise IOError(response.status_code)
OSError: 404

im using the latest snapshot version of librespot (which is still displayed as 0.0.9 though).

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