mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-22 21:16:38 +00:00
Check both possible paths for media files
This commit is contained in:
parent
844b4b0493
commit
9045bed509
@ -454,9 +454,7 @@ def download_media(media_id):
|
|||||||
f'it is now marked to be skipped, not downloading')
|
f'it is now marked to be skipped, not downloading')
|
||||||
return
|
return
|
||||||
downloaded_file_exists = (
|
downloaded_file_exists = (
|
||||||
media.media_file and
|
media.media_file_exists or
|
||||||
media.media_file.path and
|
|
||||||
media.filepath.samefile(media.media_file.path) and
|
|
||||||
media.filepath.exists()
|
media.filepath.exists()
|
||||||
)
|
)
|
||||||
if media.downloaded and downloaded_file_exists:
|
if media.downloaded and downloaded_file_exists:
|
||||||
|
Loading…
Reference in New Issue
Block a user