BramBonne/LastfmPlaycount — Issue #3: batch update stops at a point
Author: aleprovencio
Created: 2012-01-23 16:37:26+00:00
State: open

Tried to run this 2 times against my library. It goes ok but after a while it returns this is error:

(12:09:29) [0x7faa98113ae0] [LastfmPlaycountPlugin.update_entry] .local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py:244:	Setting playcount of "The John Butler Trio - Used to Get High" to 4
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/xand/.local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py", line 95, in _update_all_unthreaded
self.update_entry(self.db.entry_lookup_by_id(id))
File "/home/xand/.local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py", line 126, in update_entry
playcount, lovedtrack = self.get_lastfm_info(artist, title)
File "/home/xand/.local/share/rhythmbox/plugins/lastfmplaycount/lastfmplaycount.py", line 144, in get_lastfm_info
response = minidom.parse(urlopen("http://ws.audioscrobbler.com/2.0/?%s" % params))
File "/usr/lib/python2.7/urllib.py", line 84, in urlopen
return opener.open(url)
File "/usr/lib/python2.7/urllib.py", line 205, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 349, in open_http
'got a bad status line', None)
IOError: ('http protocol error', 0, 'got a bad status line', None)