From 68039365e827da350cd6bf317e498b6061647b18 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 26 May 2020 11:31:20 +0200 Subject: [PATCH] Clear the tags before tagging This fixes #1 --- deemix/utils/taggers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deemix/utils/taggers.py b/deemix/utils/taggers.py index 01cfe0c..cbda646 100644 --- a/deemix/utils/taggers.py +++ b/deemix/utils/taggers.py @@ -7,6 +7,7 @@ from mutagen.id3 import ID3, ID3NoHeaderError, TXXX, TIT2, TPE1, TALB, TPE2, TRC def tagID3(stream, track, save): try: tag = ID3(stream) + tag.delete() except ID3NoHeaderError: tag = ID3() @@ -74,7 +75,8 @@ def tagID3(stream, track, save): def tagFLAC(stream, track, save): tag = FLAC(stream) - + tag.delete() + tag.clear_pictures() if save['title']: tag["TITLE"] = track['title'] if save['artist']: