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

@ -630,6 +630,7 @@ class MediaSkipView(FormView, SingleObjectMixin):
# If the media has an associated NFO file with it, also delete it
delete_file(self.object.nfopath)
# Reset all download data
self.object.metadata = None
self.object.downloaded = False
self.object.downloaded_audio_codec = None
self.object.downloaded_video_codec = None