8000 feat: get alternatives by OhMyMndy · Pull Request #833 · nathom/streamrip · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: get alternatives #833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from
Draft

Conversation

OhMyMndy
Copy link
@OhMyMndy OhMyMndy commented Mar 21, 2025

Sometimes tracks aren't available anymore because of rights.

This PR fetches alternative tracks if they are defined, if not it fetches alternative albums and looks for the same track.

I tested this with a playlist of mine which has tracks which have now new albums ID's.

With version 2.1.0, I can download 68/95 tracks.
With fetching alternatives, I can download 89/95 tracks.

Playlist: https://www.deezer.com/us/playlist/10310080842

Errors without fetching the alternatives:

           ERROR    Persistent error downloading track 'Камикадзе', skipping: Cannot connect to host e-cdns-proxy-0.dzcdn.net:443 ssl:True [SSLCertVerificationError: (1, '[SSL:                    track.py:68
                    CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)')]
           ERROR    Error downloading track: [Errno 2] No such file or directory: '/home/mandy/StreamripDownloads/Guitar - Drop B/26. Stigmata - Камикадзе.mp3'                                 playlist.py:130
           ERROR    Error downloading track 'Магмель', retrying: Cannot connect to host e-cdns-proxy-1.dzcdn.net:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED]      track.py:52
                    certificate verify failed: self-signed certificate (_ssl.c:1000)')]
           ERROR    Persistent error downloading track 'Магмель', skipping: Cannot connect to host e-cdns-proxy-1.dzcdn.net:443 ssl:True [SSLCertVerificationError: (1, '[SSL:                      track.py:68
                    CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)')]
           ERROR    Error downloading track: [Errno 2] No such file or directory: '/home/mandy/StreamripDownloads/Guitar - Drop B/29. Stigmata - Магмель.mp3'                                   playlist.py:130
           ERROR    Error downloading track 'At War', retrying: Cannot connect to host e-cdns-proxy-e.dzcdn.net:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED]       track.py:52
                    certificate verify failed: self-signed certificate (_ssl.c:1000)')]

One of the tracks is this on: https://www.deezer.com/us/track/91337844

The album doesn't exist anymore, but the track is still on another album available, with that fix in place:

I can download 93/95 tracks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0