Python Eyed3 Warning

喜你入骨 提交于 2019-12-19 17:43:04

问题


Some of my mp3 files seem to have a non standard genre. When I loop through them (which I have to do in my program) I get tons of warnings like this one :

eyed3.id3:WARNING: Non standard genre name: Rock - Punk/Pop-Punk , Rock - Alternative Rock

How can I prevent eyed3 to print them?

Edit: I get this warning when I load a file e.g. :

mp3_file = eyed3.load( "path to file" ) #I get a warning when I open the 'wrong' file

回答1:


You can change the log level in eyed3 to only show errors. Try this:

eyed3.log.setLevel("ERROR")


来源:https://stackoverflow.com/questions/22403189/python-eyed3-warning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!