revert skip metadata if already skipped change, related to #293
This commit is contained in:
1 parent
1b865bbf4f
commit
246e2a3187
1 file changed
+2
-2
@@ -172,7 +172,7 @@ def media_post_save(sender, instance, created, **kwargs):
|
|||||||
instance.save()
|
instance.save()
|
||||||
post_save.connect(media_post_save, sender=Media)
|
post_save.connect(media_post_save, sender=Media)
|
||||||
# If the media is missing metadata schedule it to be downloaded
|
# If the media is missing metadata schedule it to be downloaded
|
||||||
if not instance.metadata and not instance.skip:
|
if not instance.metadata:
|
||||||
log.info(f'Scheduling task to download metadata for: {instance.url}')
|
log.info(f'Scheduling task to download metadata for: {instance.url}')
|
||||||
verbose_name = _('Downloading metadata for "{}"')
|
verbose_name = _('Downloading metadata for "{}"')
|
||||||
download_media_metadata(
|
download_media_metadata(
|
||||||
@@ -184,7 +184,7 @@ def media_post_save(sender, instance, created, **kwargs):
|
|||||||
# If the media is missing a thumbnail schedule it to be downloaded
|
# If the media is missing a thumbnail schedule it to be downloaded
|
||||||
if not instance.thumb_file_exists:
|
if not instance.thumb_file_exists:
|
||||||
instance.thumb = None
|
instance.thumb = None
|
||||||
if not instance.thumb and not instance.skip:
|
if not instance.thumb:
|
||||||
thumbnail_url = instance.thumbnail
|
thumbnail_url = instance.thumbnail
|
||||||
if thumbnail_url:
|
if thumbnail_url:
|
||||||
log.info(f'Scheduling task to download thumbnail for: {instance.name} '
|
log.info(f'Scheduling task to download thumbnail for: {instance.name} '
|
||||||
|
|||||||
Reference in new issue
Block a user