From 8d67d9d619e76c725955e292e8b3192e98253482 Mon Sep 17 00:00:00 2001 From: nathannathant <74019033+pynathanthomas@users.noreply.github.com> Date: Tue, 2 Mar 2021 19:35:58 -0800 Subject: [PATCH] typo --- qobuz_dl/core.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qobuz_dl/core.py b/qobuz_dl/core.py index 1711479..36c69ab 100644 --- a/qobuz_dl/core.py +++ b/qobuz_dl/core.py @@ -99,7 +99,9 @@ class QobuzDL: os.makedirs(fix, exist_ok=True) return fix - def get_url_info(url: str) -> Tuple[str, str]: + def get_url_info(self, url: str) -> Tuple[str, str]: + '''Returns the type of the url and the 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]+)", @@ -152,7 +154,7 @@ class QobuzDL: "track": {"album": False, "func": None, "iterable_key": None}, } try: - url_type, item_id = self.get_info(url) + url_type, item_id = self.get_url_info(url) type_dict = possibles[url_type] except (KeyError, IndexError): logger.info(