scrobbler fails after a different application has scrobbled

Bug #501190 reported by ackstorm
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Exaile
Incomplete
Medium
Unassigned

Bug Description

<hednod> who maintains the last.fm scrobbler plugin?
<reacocard> er... the exaile devs? its kinda a core plugin :)
<hednod> well i've found what seems to be a consistent problem
<hednod> if i use anything else to scrobble
<hednod> and then go back to playing in exaile
<hednod> it fails to scrobble, until i restart the client
<reacocard> hm
<hednod> so say.. i play a track I do not have, using last.fm's flash player
<hednod> and then when the above mentioned track is done playing, I begin to play again in exaile... no more scrobbles
<reacocard> lastfm probably requires us to re-authenticate when that happens, is my guess
<reacocard> valid bug most likely, go ahead and file a report

reacocard (reacocard)
Changed in exaile:
importance: Undecided → Medium
milestone: none → 0.3.1
status: New → Confirmed
Revision history for this message
Mathias Brodala (mathbr) wrote :

Could you give us some specific terminal output?

Changed in exaile:
status: Confirmed → Incomplete
Revision history for this message
Pablo Montepagano (pmontepagano) wrote :
Download full text (4.4 KiB)

This is what I got. Steps to reproduce:

1. Play a song in Exaile. Wait until it finishes playing.
2. Fire up another player, eg. Rythmbox, and play a song. Wait until it stops.
3. Close Rythmbox and play another song in Exaile.

Some of the output is unrelated to the scrobbler.
You'll see it scrobbles well the first song, but not the second. Also notice that it sent info from my previous session. (Songs that didn't get scrobbled last time). I replaced my username and a couple of md5sums I found in the output for privacy reasons.

INFO : Playing file:///home/pablo/Musica/FILE.ogg
/usr/lib64/python2.6/urllib.py:1223: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  res = map(safe_map.__getitem__, s)
Exception in thread Thread-9:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/exaile/plugins/lyricsviewer/__init__.py", line 99, in get_lyrics
    lyr, source, url = self.exaile.lyrics.find_lyrics(track)
  File "/usr/lib/python2.6/site-packages/exaile/xl/lyrics.py", line 161, in find_lyrics
    (lyrics, source, url) = method.find_lyrics(track)
  File "/usr/share/exaile/plugins/lyricwiki/__init__.py", line 45, in find_lyrics
    artist = urllib.quote(artist.replace(' ','_'))
  File "/usr/lib64/python2.6/urllib.py", line 1223, in quote
    res = map(safe_map.__getitem__, s)
KeyError: u'\xe1'

INFO : Attempting to submit "Now Playing" information to AudioScrobbler...
INFO : Submitted "Now Playing" successfully to AudioScrobbler
Exception in thread Thread-11:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 525, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.6/threading.py", line 477, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/share/exaile/plugins/lyricsviewer/__init__.py", line 99, in get_lyrics
    lyr, source, url = self.exaile.lyrics.find_lyrics(track)
  File "/usr/lib/python2.6/site-packages/exaile/xl/lyrics.py", line 161, in find_lyrics
    (lyrics, source, url) = method.find_lyrics(track)
  File "/usr/share/exaile/plugins/lyricwiki/__init__.py", line 45, in find_lyrics
    artist = urllib.quote(artist.replace(' ','_'))
  File "/usr/lib64/python2.6/urllib.py", line 1223, in quote
    res = map(safe_map.__getitem__, s)
KeyError: u'\xe1'

INFO : AudioScrobbler OK: o%5B1%5D=P&o%5B3%5D=P&b%5B0%5D=The+Only+Thing+I+Ever+Wanted&a%5B0%5D=Psapp&l%5B2%5D=159&b%5B2%5D=Kill+Bill%3A+Vol.+1&a%5B2%5D=Nancy+Sinatra&n%5B3%5D=2&r%5B0%5D=&l%5B0%5D=328&n%5B1%5D=2&r%5B3%5D=&i%5B0%5D=1275254109&m%5B2%5D=&t%5B2%5D=Bang+Bang+%28My+Baby+Shot+Me+Down%29&i%5B2%5D=1275254676&m%5B0%5D=&t%5B0%5D=Hill+of+Our+Home&a%5B3%5D=Fito+P%C3%A1ez&o%5B2%5D=P&b%5B1%5D=Circo+Beat&o%5B0%5D=P&n%5B0%5D=7&a%5B1%5D=Fito+P%C3%A1ez&l%5B3%5D=223&b%5B3%5D=Circo+Beat&n%5B2%5D=1&r%5B1%5D=&l%5B1%5D=223&i%5B3%5D=1275255802&r%5B2%5D=&i%5B1%5D=1275254451&t%5B3%5D=Mariposa+tecknicolor&m%5B3%5D=&s=MD5SUM&t%5B1%5D=Mariposa+tecknicolor&m%5B1%5D=...

Read more...

Revision history for this message
Mathias Brodala (mathbr) wrote :

Should be fixed with r4365, please confirm.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.