Skip to content

fix(deezer): resolve link.deezer.com short URLs and tighten playlist …#216

Open
themmm wants to merge 1 commit intokmille:masterfrom
themmm:fix/deezer-short-link-playlist-id
Open

fix(deezer): resolve link.deezer.com short URLs and tighten playlist …#216
themmm wants to merge 1 commit intokmille:masterfrom
themmm:fix/deezer-short-link-playlist-id

Conversation

@themmm
Copy link
Copy Markdown

@themmm themmm commented May 7, 2026

…id regex

The previous \d+ regex matched the first digit run in the input, which for short share URLs like https://link.deezer.com/s/33cJ3GNOlM... picked up "33" instead of the real playlist id, causing a PERMISSION_ERROR from the Deezer API.

  • follow redirects on link.deezer.com inputs via requests.head
  • match /playlist/(\d+) against the resolved URL, with a numeric-only fallback for raw ids

This fix has been created with AI and tested by a human

…id regex

The previous \d+ regex matched the first digit run in the input, which
for short share URLs like https://link.deezer.com/s/33cJ3GNOlM... picked
up "33" instead of the real playlist id, causing a PERMISSION_ERROR
from the Deezer API.

- follow redirects on link.deezer.com inputs via requests.head
- match /playlist/(\d+) against the resolved URL, with a numeric-only
  fallback for raw ids
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