Package: quodlibet-plugins Version: 20080329-1 User: [EMAIL PROTECTED] Usertags: origin-ubuntu intrepid ubuntu-patch
(this has been initially reported by lazka to ubuntu at: https://bugs.launchpad.net/bugs/87188) Both the "Export Metadata" and "Export HTML" plugins don't work at all because they throw the following exception: -- snip -- Traceback (most recent call last): File "/usr/share/quodlibet/plugins/songsmenu.py", line 149, in __handle try: ret = map(plugin.plugin_album, albums) File "/usr/share/quodlibet/plugins/songsmenu/importexport.py", line 54, in plugin_album out = open(fn, 'wU') ValueError: universal newline mode can only be used with modes starting with 'r' -- snip -- The message basicly explains the solution: remove the U in the mode in songsmenu/importexport.py and songsmenu/html.py. I've attached a patch which fixes this trivial issue. Thanks, Kjell
Index: quodlibet-plugins-20080329/songsmenu/html.py =================================================================== --- quodlibet-plugins-20080329.orig/songsmenu/html.py 2008-05-02 23:36:35.000000000 +0200 +++ quodlibet-plugins-20080329/songsmenu/html.py 2008-05-02 23:36:39.000000000 +0200 @@ -80,6 +80,6 @@ s += '</tr>' songs_s += s - f = open(fn, 'wU') + f = open(fn, 'w') f.write((HTML % {'headers': cols_s, 'songs': songs_s}).encode('utf-8')) f.close() Index: quodlibet-plugins-20080329/songsmenu/importexport.py =================================================================== --- quodlibet-plugins-20080329.orig/songsmenu/importexport.py 2008-05-02 23:36:13.000000000 +0200 +++ quodlibet-plugins-20080329/songsmenu/importexport.py 2008-05-02 23:36:19.000000000 +0200 @@ -51,7 +51,7 @@ global lastfolder lastfolder = dirname(fn) - out = open(fn, 'wU') + out = open(fn, 'w') for song in songs: print>>out, str(song('~basename'))
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil