[Bug 410929] Re: ValueError: min() arg is an empty sequence
This is fixed since 1.18 ** Changed in: mutagen (Ubuntu) Status: New = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/410929 Title: ValueError: min() arg is an empty sequence To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mutagen/+bug/410929/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 410929] Re: ValueError: min() arg is an empty sequence
Here's a patch that seems to fix it for your affected file. I don't know if my tiny patch will cause other problems with the program, as I've never used this program before. The problem seems to be that the TCON tag of that mp3 file is represented as completely blank by mutagen.id3 (i.e. []) where instead an empty tag should always be an empty string (i.e. [u'']) The thing I can't figure out is why the map function on line 76 returns an empty list. isascii(text) True text [] isascii(text) True map(isascii, text) [] Shouldn't map return [True] instead of []? ** Attachment added: mid3iconv.patch http://launchpadlibrarian.net/37035428/mid3iconv.patch -- ValueError: min() arg is an empty sequence https://bugs.launchpad.net/bugs/410929 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 410929] Re: ValueError: min() arg is an empty sequence
If you map an empty list to anything, it will always be an empty list. -- ValueError: min() arg is an empty sequence https://bugs.launchpad.net/bugs/410929 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 410929] Re: ValueError: min() arg is an empty sequence
** Attachment added: The buggy mp3 file http://launchpadlibrarian.net/30071163/AnXiang.mp3 -- ValueError: min() arg is an empty sequence https://bugs.launchpad.net/bugs/410929 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs