Closed GoogleCodeExporter closed 9 years ago
I don't want Mutagen to depend on libmagic, and I also don't want the scoring
algorithms to have different results depending on what third-party libraries
are installed - that would be hell for application authors to debug user issues.
Original comment by joe.wreschnig@gmail.com
on 8 Apr 2011 at 7:59
I understand those issues--though libmagic is standard on Linux systems. But
is there some other way you could fix it? Maybe you could check the first few
bytes of the file to see if it's an MP3, even if it doesn't have ID3 tags.
At least, could there be a way to override the score and force mutagen.File()
to open a file as an MP3 so tags can be added to the file?
Original comment by alphadel...@gmail.com
on 11 Apr 2011 at 5:44
libmagic is standard on Linux but python-magic is not; I don't even think it's
installed by default on most distributions. Figuring out whether something is
an MP3 file in the general case is surprisingly difficult.
If you just want to add tags, use mutagen.id3.ID3, which writes raw ID3 tags to
a file. File is the auto-detecting variant; all constructors can still be used
manually.
Original comment by joe.wreschnig@gmail.com
on 11 Apr 2011 at 9:07
Ok, thanks.
Original comment by alphadel...@gmail.com
on 12 Apr 2011 at 12:37
Original issue reported on code.google.com by
alphadel...@gmail.com
on 8 Apr 2011 at 5:10