new build and upload

This commit is contained in:
Lars Noack
2022-11-24 12:37:44 +01:00
parent 749b6f9eb8
commit 42feb5397a
4 changed files with 195 additions and 29 deletions

View File

@@ -55,12 +55,15 @@ class Download:
self.add_url(musify_url, 'musify', id_)
continue
"""
sucess = False
for src in AUDIO_SOURCES:
res = Download.fetch_from_src(song, src)
if res is not None:
sucess = True
Download.add_url(res, src, id_)
logger.warning(f"Didn't find any sources for {song}")
if not sucess:
logger.warning(f"Didn't find any sources for {song}")
@staticmethod
def fetch_from_src(song, src):