Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nathom committed Mar 3, 2021
1 parent e45ce11 commit 8d67d9d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qobuz_dl/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def create_dir(self, directory=None):
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]+)",
Expand Down Expand Up @@ -152,7 +154,7 @@ def handle_url(self, url):
"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(
Expand Down

0 comments on commit 8d67d9d

Please sign in to comment.