[banshee] [Audioscrobbler] Send the length of the now playing track as an integer
- From: Bertrand Lorentz <blorentz src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee] [Audioscrobbler] Send the length of the now playing track as an integer
- Date: Sat, 20 Jun 2009 08:16:53 -0400 (EDT)
commit 3d93f4d21e6023e3784076e76169eb1f689ba7f7
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sat Jun 20 14:11:16 2009 +0200
[Audioscrobbler] Send the length of the now playing track as an integer
It seems a decimal value confuses Last.fm and causes the track to be
quickly removed from "Now Playing" (BGO#586460).
.../Lastfm/Lastfm/AudioscrobblerConnection.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Lastfm/Lastfm/AudioscrobblerConnection.cs b/src/Libraries/Lastfm/Lastfm/AudioscrobblerConnection.cs
index 6df9f83..3ed2cca 100644
--- a/src/Libraries/Lastfm/Lastfm/AudioscrobblerConnection.cs
+++ b/src/Libraries/Lastfm/Lastfm/AudioscrobblerConnection.cs
@@ -514,7 +514,7 @@ namespace Lastfm
HttpUtility.UrlEncode(artist),
HttpUtility.UrlEncode(title),
HttpUtility.UrlEncode(album),
- duration.ToString(),
+ duration.ToString("F0"),
str_track_number,
mbrainzid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]