From 9045bed5093b58874895158a623ccc953a5dd5fe Mon Sep 17 00:00:00 2001 From: tcely Date: Fri, 14 Feb 2025 19:26:12 -0500 Subject: [PATCH] Check both possible paths for media files --- tubesync/sync/tasks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tubesync/sync/tasks.py b/tubesync/sync/tasks.py index 2a93f986..d6857be7 100644 --- a/tubesync/sync/tasks.py +++ b/tubesync/sync/tasks.py @@ -454,9 +454,7 @@ def download_media(media_id): f'it is now marked to be skipped, not downloading') return downloaded_file_exists = ( - media.media_file and - media.media_file.path and - media.filepath.samefile(media.media_file.path) and + media.media_file_exists or media.filepath.exists() ) if media.downloaded and downloaded_file_exists: