Skip to content

Commit

Permalink
revert skip metadata if already skipped change, related to #293
Browse files Browse the repository at this point in the history
  • Loading branch information
meeb committed Feb 26, 2024
1 parent 1b865bb commit 246e2a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tubesync/sync/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def media_post_save(sender, instance, created, **kwargs):
instance.save()
post_save.connect(media_post_save, sender=Media)
# 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}')
verbose_name = _('Downloading metadata for "{}"')
download_media_metadata(
Expand All @@ -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 not instance.thumb_file_exists:
instance.thumb = None
if not instance.thumb and not instance.skip:
if not instance.thumb:
thumbnail_url = instance.thumbnail
if thumbnail_url:
log.info(f'Scheduling task to download thumbnail for: {instance.name} '
Expand Down

0 comments on commit 246e2a3

Please sign in to comment.