LaurentCR / pylast

Automatically exported from code.google.com/p/pylast
Apache License 2.0
0 stars 0 forks source link

_do_handshake in scrobbler never called if scrobbling without reporting nowplaying #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In line 3651 of pylast.py, in method report_now_playing, if scrobbler request 
fails, handshake is forced and submissions_url as well as nowplaying_url are 
obtained. 

These values are never requested elsewhere so if one tries scrobbling without 
reporting nowplaying, as in line 3683 in method scrobble, handshake is not 
performed and scrobbles are never submitted. Probably should be as below 
(replacing line 3683), right?

try:
            ScrobblerRequest(self.submissions_url, params, self.network).execute()
        except BadSessionError:
            self._do_handshake()
            self.scrobble( artist, title, time_started, source, mode, duration, album, track_number, mbid);

Original issue reported on code.google.com by the.wa.s...@gmail.com on 20 Oct 2010 at 10:21

GoogleCodeExporter commented 9 years ago

Original comment by amr.hassan on 5 Jan 2011 at 1:37