summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorjerous <jerous@gmail.com>2008-09-17 20:23:55 +0200
committerjerous <jerous@gmail.com>2008-09-17 20:23:55 +0200
commit98e836c485c1be96ebd8e6c4d9cf0fe5ac97d3fa (patch)
treeabe9ed34362b720e00e63ec7a42e2e4fe4dc549e /plugins
parent3cfe2a0ebe5ed8af5d485064a903624ef3ec5a51 (diff)
Scrobbler: don't resubmit at success first time :)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Scrobbler.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/plugins/Scrobbler.py b/plugins/Scrobbler.py
index b07af59..fc60502 100644
--- a/plugins/Scrobbler.py
+++ b/plugins/Scrobbler.py
@@ -42,15 +42,18 @@ class pluginScrobbler(Plugin):
flush()
self.submitted=True
except SessionError, e:
- self.important("failed to submit song - %s"%(e))
+ self.important("failed to submit song1 - %s"%(e))
self.extended("Logging in ...")
self._login()
- try:
- flush()
- self.submitted=True
- except Exception, e:
- self.important("failed to submit song - %s"%(e))
- self.debug("flushed")
+ try:
+ flush()
+ self.submitted=True
+ except Exception, e:
+ self.important("failed to submit song2 - %s"%(e))
+ if self.submitted:
+ self.debug("flushed")
+ else:
+ self.important("failed to submit the song!")
def onSongChange(self, params):
self.time=int(time.mktime(datetime.utcnow().timetuple()))