Package: quodlibet-plugins
Version: 20070625-1
Severity: normal
Tags: patch
The Python API in lastfmsubmitd has changed, which breaks the last.fm
submission plugin in quodlibet. Attached patch fixes this at least for me.
Teemu
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-k7 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages quodlibet-plugins depends on:
ii exfalso 1.0-1 audio tag editor for GTK+
quodlibet-plugins recommends no packages.
-- no debconf information
--- lastfmsubmit.py.orig 2007-11-25 14:45:54.000000000 +0100
+++ lastfmsubmit.py 2007-11-25 17:22:59.000000000 +0100
@@ -27,10 +27,13 @@
__exclude = ""
__song = None
__timeout_id = -1
- __log = lastfm.logger('quodlibet')
+ __cli = None
def __init__(self):
- try: self.__exclude = config.get("plugins", "scrobbler_exclude")
+ try:
+ self.__exclude = config.get("plugins", "scrobbler_exclude")
+ __cli = lastfm.client.Client('quodlibet')
+ __cli.open_log()
except: pass
def unprepare(self):
@@ -131,6 +134,6 @@
for key in data.keys():
if not data[key]: del(data[key])
try:
- lastfm.submit([data])
- self.__log.info("Sent %s", lastfm.repr(data))
- except IOError, e: self.__log.error("Error: %s" % e)
+ self.__cli.submit([data])
+ self.__cli.log.info("Sent %s", lastfm.repr(data))
+ except IOError, e: self.__cli.log.error("Error: %s" % e)