This commit is contained in:
Lars Noack
2022-11-30 16:15:38 +01:00
parent a050680dd7
commit 8d484bde68
7 changed files with 34 additions and 20 deletions

View File

@@ -39,9 +39,10 @@ class Download:
@classmethod
def fetch_sources(cls, songs: List[song_object], skip_existing_files: bool = False):
for song in songs:
if os.path.exists(song.target.file) and skip_existing_files:
logger.info(f"skipping the fetching of the download links, cuz {song.target.file} already exists.")
continue
if song.target.is_set():
if os.path.exists(song.target.file) and skip_existing_files:
logger.info(f"skipping the fetching of the download links, cuz {song.target.file} already exists.")
continue
sucess = False
for src in AUDIO_SOURCES: