Python Eyed3警告 [英] Python Eyed3 Warning
本文介绍了Python Eyed3警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的某些mp3文件似乎具有非标准流派.当我遍历它们时(在程序中必须这样做),我会收到大量这样的警告:
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
如何防止eyed3打印它们?
How can I prevent eyed3 to print them?
我在加载文件时收到此警告,例如:
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
推荐答案
您可以将eyed3中的日志级别更改为仅显示错误.试试这个:
You can change the log level in eyed3 to only show errors. Try this:
eyed3.log.setLevel("ERROR")
这篇关于Python Eyed3警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文