mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
Invalidate cache when clearing metadata
This commit is contained in:
parent
33acb5fc26
commit
091b4cdaad
@ -1108,6 +1108,7 @@ class Media(models.Model):
|
||||
|
||||
def metadata_clear(self, /, *, save=False):
|
||||
self.metadata = None
|
||||
setattr(self, '_cached_metadata_dict', None)
|
||||
if save:
|
||||
self.save()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user