Revert "Remove int to string conversions needed for pylast < 0.5.7"
This reverts commit 62111c277c. The issue
is not fully fixed in pylast yet.
This commit is contained in:
parent
62111c277c
commit
5d4c13268f
@ -100,8 +100,8 @@ class LastfmFrontendThread(BaseThread):
|
||||
artists,
|
||||
(track.name or ''),
|
||||
album=(track.album and track.album.name or ''),
|
||||
duration=duration,
|
||||
track_number=track.track_no,
|
||||
duration=str(duration),
|
||||
track_number=str(track.track_no),
|
||||
mbid=(track.musicbrainz_id or ''))
|
||||
except (pylast.ScrobblingError, pylast.NetworkError,
|
||||
pylast.MalformedResponseError, pylast.WSError) as e:
|
||||
@ -125,10 +125,10 @@ class LastfmFrontendThread(BaseThread):
|
||||
self.lastfm.scrobble(
|
||||
artists,
|
||||
(track.name or ''),
|
||||
self.last_start_time,
|
||||
str(self.last_start_time),
|
||||
album=(track.album and track.album.name or ''),
|
||||
track_number=track.track_no,
|
||||
duration=duration,
|
||||
track_number=str(track.track_no),
|
||||
duration=str(duration),
|
||||
mbid=(track.musicbrainz_id or ''))
|
||||
except (pylast.ScrobblingError, pylast.NetworkError,
|
||||
pylast.MalformedResponseError, pylast.WSError) as e:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user