Skip to content

Commit 35fa8c8

Browse files
authored
Merge pull request #1200 from tcely/patch-2
Use `download_media_image` function in `Media.copy_thumbnail`
2 parents 31c71e2 + e2154c8 commit 35fa8c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tubesync/sync/models/media__tasks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ def copy_thumbnail(self):
1818
if not self.source.copy_thumbnails:
1919
return
2020
if not self.thumb_file_exists:
21-
from sync.tasks import delete_task_by_media, download_media_thumbnail
21+
from sync.tasks import download_media_image
2222
args = ( str(self.pk), self.thumbnail, )
2323
if not args[1]:
2424
return
25-
delete_task_by_media('sync.tasks.download_media_thumbnail', args)
26-
if download_media_thumbnail.now(*args):
25+
if download_media_image.call_local(*args):
2726
self.refresh_from_db()
2827
if not self.thumb_file_exists:
2928
return

0 commit comments

Comments
 (0)