开发者

How to get audio file metadata in python beyond regexes and id3 tags

Right now I'm working on a开发者_JS百科 script that needs to extract the artist, album, and title from all these audio files. At the moment, I first try to extract them with regular expressions, and if the files aren't named nicely I go the slow route and try to get the information with id3 tags. The files then just get ignored if neither works.

Id3 tags only work with mp3 files though, so I was wondering if anyone knew any good id3 equivalent tag reading python libraries for some of the other popular audio file extensions.

Thanks! Grant


Use mutagen. It's a multi-format tag reading (and writing) library.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜