leosongwei / mutagen

Automatically exported from code.google.com/p/mutagen
GNU General Public License v2.0
0 stars 0 forks source link

Strip all tag related data from file #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I don't know if that's possible or mutagen is the right place for this..

It would be nice if there was a function to strip all tag related data from
a file in case it is invalid and/or mutagen fails to load it for whatever
reason, by guessing the type, looking for the audio stream and
deleting/renumbering everything etc.

Original issue reported on code.google.com by reiter.christoph@gmail.com on 21 Mar 2010 at 1:06

GoogleCodeExporter commented 9 years ago
It's not possible to strip all tag-related data from some files, e.g. Ogg Vorbis
streams must have a comment packet.

mutagen.File(filename).delete() will delete a tag format Mutagen finds, but it's
probably not what you want. If Mutagen can't load it, Mutagen can't delete the 
tags
from it.

Original comment by joe.wreschnig@gmail.com on 30 Mar 2010 at 8:34