From 93f9d8d92f9a4bb2e34e91e938333e2b0b68620e Mon Sep 17 00:00:00 2001 From: nathannathant <74019033+pynathanthomas@users.noreply.github.com> Date: Tue, 2 Mar 2021 19:44:10 -0800 Subject: [PATCH] comments --- qobuz_dl/core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qobuz_dl/core.py b/qobuz_dl/core.py index 36c69ab..ed14a56 100644 --- a/qobuz_dl/core.py +++ b/qobuz_dl/core.py @@ -101,7 +101,14 @@ class QobuzDL: def get_url_info(self, url: str) -> Tuple[str, str]: '''Returns the type of the url and the id. + + Compatible with urls of the form: + https://www.qobuz.com/us-en/{type}/{name}/{id} + https://open.qobuz.com/{type}/{id} + https://play.qobuz.com/{type}/{id} + /us-en/{type}/-/{id} ''' + r = re.search( r"(?:https:\/\/(?:w{3}|open|play)\.qobuz\.com)?(?:\/[a-z]{2}-[a-z]{2})" r"?\/(album|artist|track|playlist|label)(?:\/[-\w\d]+)?\/([\w\d]+)",