From 245b52ed7f5e6c7c7f9fb4e7dd3b26270b628f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 6 May 2020 14:17:12 +0200 Subject: [PATCH] strip all existing metadata when creating sound files --- emissions/management/commands/create-sound-files.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emissions/management/commands/create-sound-files.py b/emissions/management/commands/create-sound-files.py index 4892415..c489268 100644 --- a/emissions/management/commands/create-sound-files.py +++ b/emissions/management/commands/create-sound-files.py @@ -159,9 +159,8 @@ class Command(BaseCommand): file_path = soundfile.get_format_path(format) audio = mutagen.File(file_path, easy=True) + audio.delete() # strip all existing metadata - if 'comment' in audio: - del audio['comment'] if soundfile.fragment is True and soundfile.title: audio['title'] = '%s - %s' % ( soundfile.episode.title, -- GitLab