mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-09 14:11:55 -04:00
Fix new Deezer URL (#820)
This commit is contained in:
parent
7a3758ce78
commit
db52d493b8
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue