refactored using the song and src object instead of dict

This commit is contained in:
Lars Noack 2022-11-22 12:58:19 +01:00
parent 6a43859126
commit 599b0fdd59

View File

@ -89,7 +89,7 @@ class Musify(AudioSource):
logging.warning(f"youtube blocked downloading. ({trie}-{TRIES})")
logging.warning(f"retrying in {TIMEOUT} seconds again")
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")
return None