Fixed Vorbis files being marked as changed when the tag "tracktotal" was

used. Thanks to hawke for finding and fixing this. Fixes #3924
This commit is contained in:
Philipp Wolfer
2008-10-15 00:22:50 +02:00
parent 380b202fd2
commit 3eb211f429

View File

@@ -51,7 +51,7 @@ class VCommentFile(File):
elif name == "fingerprint" and value.startswith("MusicMagic Fingerprint"):
name = "musicip_fingerprint"
value = value[22:]
elif name == "tracktotal":
elif name == "tracktotal" and "totaltracks" not in file.tags:
name = "totaltracks"
metadata.add(name, value)
if self._File == mutagen.flac.FLAC: