refactored using the song and src object instead of dict
This commit is contained in:
parent
6a43859126
commit
599b0fdd59
@ -89,7 +89,7 @@ class Musify(AudioSource):
|
|||||||
logging.warning(f"youtube blocked downloading. ({trie}-{TRIES})")
|
logging.warning(f"youtube blocked downloading. ({trie}-{TRIES})")
|
||||||
logging.warning(f"retrying in {TIMEOUT} seconds again")
|
logging.warning(f"retrying in {TIMEOUT} seconds again")
|
||||||
time.sleep(TIMEOUT)
|
time.sleep(TIMEOUT)
|
||||||
return get_soup_of_search(query, trie=trie + 1)
|
return cls.get_soup_of_search(query, trie=trie + 1)
|
||||||
|
|
||||||
logging.warning("too many tries, returning")
|
logging.warning("too many tries, returning")
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user