2012-02-05, 08:08
I noticed that the script was initially submitting "Now Playing" scrobbles to last.fm, but never completing final scrobbles to last.fm or libre.fm.
After some research and experimentation, I discovered that a simple change to "default.py", adding duration information to the stream items, would enable full scrobbling support. Here is the modification as a git diff:
I've cloned the main git repo, pushed the code change, and sent a merge request. Hopefully, the code will be merged into the mainline soon.
NOTE: scrobbles are cached during script execution and then submitted en masse when the script is halted.
Cheers.
After some research and experimentation, I discovered that a simple change to "default.py", adding duration information to the stream items, would enable full scrobbling support. Here is the modification as a git diff:
Code:
diff --git a/default.py b/default.py
index a6997f7..f4fdb42 100644
--- a/default.py
+++ b/default.py
@@ -149,7 +149,9 @@ class Panda:
"artist" : s["artistSummary"], \
"album" : s["albumTitle"], \
"genre" : "".join(s["genre"]), \
+ "duration" : s["trackLength"], \
}
+ print "PANDORA: item info = %s" % info
item.setInfo( "music", info )
items.append( ( s["audioURL"], item ) )
I've cloned the main git repo, pushed the code change, and sent a merge request. Hopefully, the code will be merged into the mainline soon.
NOTE: scrobbles are cached during script execution and then submitted en masse when the script is halted.
Cheers.