mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 06:26:37 +00:00
Add SHRINK_OLD_MEDIA_METADATA setting
This commit is contained in:
parent
1ff8dfda98
commit
6292a9a59d
@ -1168,6 +1168,8 @@ class Media(models.Model):
|
|||||||
if old_mdl > new_mdl:
|
if old_mdl > new_mdl:
|
||||||
delta = old_mdl - new_mdl
|
delta = old_mdl - new_mdl
|
||||||
log.info(f'{self.key}: metadata reduced by {delta:,} characters ({old_mdl:,} -> {new_mdl:,})')
|
log.info(f'{self.key}: metadata reduced by {delta:,} characters ({old_mdl:,} -> {new_mdl:,})')
|
||||||
|
if getattr(settings, 'SHRINK_OLD_MEDIA_METADATA', False):
|
||||||
|
self.metadata = filtered_json
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user