Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions tubesync/sync/models/media__tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ def copy_thumbnail(self):
if not self.source.copy_thumbnails:
return
if not self.thumb_file_exists:
from sync.tasks import delete_task_by_media, download_media_thumbnail
from sync.tasks import download_media_image
args = ( str(self.pk), self.thumbnail, )
if not args[1]:
return
delete_task_by_media('sync.tasks.download_media_thumbnail', args)
if download_media_thumbnail.now(*args):
if download_media_image.call_local(*args):
self.refresh_from_db()
if not self.thumb_file_exists:
return
Expand Down