From e882d38ffebde28a3f6babea55a50e26e42e8dad Mon Sep 17 00:00:00 2001 From: Amr Hassan Date: Fri, 21 Jan 2011 22:37:14 +0000 Subject: [PATCH] * Fixed: Issue #56: update_now_playing() and scrobble() does not accept integers where natural --- pylast.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylast.py b/pylast.py index 46ec921..5c5d1b1 100644 --- a/pylast.py +++ b/pylast.py @@ -451,10 +451,10 @@ class _Network(object): if album: params["album"] = album if album_artist: params["albumArtist"] = album_artist - if context: params["context"] = context - if track_number: params["trackNumber"] = track_number + if context: params["context"] = _unicode(context) + if track_number: params["trackNumber"] = _unicode(track_number) if mbid: params["mbid"] = mbid - if duration: params["duration"] = duration + if duration: params["duration"] = _unicode(duration) _Request(self, "track.updateNowPlaying", params).execute()