From db52d493b8687ab419fa31c75dd7f897e64ac9df Mon Sep 17 00:00:00 2001
From: Louis2530 <65404506+Louis2530@users.noreply.github.com>
Date: Wed, 12 Mar 2025 17:51:22 +0100
Subject: [PATCH] Fix new Deezer URL (#820)

---
 streamrip/rip/parse_url.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/streamrip/rip/parse_url.py b/streamrip/rip/parse_url.py
index c601718..51e0fbc 100644
--- a/streamrip/rip/parse_url.py
+++ b/streamrip/rip/parse_url.py
@@ -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: