mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Refresh formats only after metadata was saved
This commit is contained in:
parent
bc6f209d8d
commit
ec96a86c07
@ -565,7 +565,8 @@ def download_media(media_id):
|
||||
f'expected outfile does not exist: {filepath}')
|
||||
log.error(err)
|
||||
# Try refreshing formats
|
||||
media.refresh_formats
|
||||
if media.has_metadata:
|
||||
media.refresh_formats
|
||||
# Raising an error here triggers the task to be re-attempted (or fail)
|
||||
raise DownloadFailedException(err)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user