Fix new Deezer URL (#820)

This commit is contained in:
Louis2530 2025-03-12 17:51:22 +01:00 committed by GitHub
parent 7a3758ce78
commit db52d493b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,7 @@ from ..media import (
logger = logging.getLogger("streamrip")
URL_REGEX = re.compile(
r"https?://(?:www|open|play|listen)?\.?(qobuz|tidal|deezer)\.com(?:(?:/(album|artist|track|playlist|video|label))|(?:\/[-\w]+?))+\/([-\w]+)",
r"https?://(?:www|open|play|listen)?\.?(qobuz|tidal|deezer|dzr)\.?(com|page.link)(?:(?:/(album|artist|track|playlist|video|label))|(?:\/[-\w]+?))+\/([-\w]+)",
)
SOUNDCLOUD_URL_REGEX = re.compile(r"https://soundcloud.com/[-\w:/]+")
LASTFM_URL_REGEX = re.compile(r"https://www.last.fm/user/\w+/playlists/\w+")
@ -138,7 +138,7 @@ class DeezerDynamicURL(URL):
standard_link_re = re.compile(
r"https://www\.deezer\.com/[a-z]{2}/(album|artist|playlist|track)/(\d+)"
)
dynamic_link_re = re.compile(r"https://deezer\.page\.link/\w+")
dynamic_link_re = re.compile(r"https://(?:deezer|dzr)\.page\.link/\w+")
@classmethod
def from_str(cls, url: str) -> URL | None: