delete metadata when a media item is reset, related to #226

This commit is contained in:
meeb
2022-03-28 19:13:30 +11:00
parent d0a214e21b
commit 0c347d523d
3 changed files with 4 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ def media_post_save(sender, instance, created, **kwargs):
# Triggered after media is saved
cap_changed = False
can_download_changed = False
# Reset the skip flag if the download cap has changed if the media has not
# Reset the skip flag if the download cap has changed if the media has not
# already been downloaded
if not instance.downloaded:
max_cap_age = instance.source.download_cap_date