mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-11-22 11:05:25 +01:00
typo
This commit is contained in:
parent
e45ce11439
commit
8d67d9d619
@ -99,7 +99,9 @@ class QobuzDL:
|
|||||||
os.makedirs(fix, exist_ok=True)
|
os.makedirs(fix, exist_ok=True)
|
||||||
return fix
|
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 = re.search(
|
||||||
r"(?:https:\/\/(?:w{3}|open|play)\.qobuz\.com)?(?:\/[a-z]{2}-[a-z]{2})"
|
r"(?:https:\/\/(?:w{3}|open|play)\.qobuz\.com)?(?:\/[a-z]{2}-[a-z]{2})"
|
||||||
r"?\/(album|artist|track|playlist|label)(?:\/[-\w\d]+)?\/([\w\d]+)",
|
r"?\/(album|artist|track|playlist|label)(?:\/[-\w\d]+)?\/([\w\d]+)",
|
||||||
@ -152,7 +154,7 @@ class QobuzDL:
|
|||||||
"track": {"album": False, "func": None, "iterable_key": None},
|
"track": {"album": False, "func": None, "iterable_key": None},
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
url_type, item_id = self.get_info(url)
|
url_type, item_id = self.get_url_info(url)
|
||||||
type_dict = possibles[url_type]
|
type_dict = possibles[url_type]
|
||||||
except (KeyError, IndexError):
|
except (KeyError, IndexError):
|
||||||
logger.info(
|
logger.info(
|
||||||
|
Loading…
Reference in New Issue
Block a user