Rockbox Technical Forums
Third Party => Other Utilities => Topic started by: H3PO on August 08, 2010, 10:02:45 AM
-
Hi there,
I just put together some files that I put on my player so everytime I plug it into a windows machine, I can upload my scrobbler log to last.fm. It works only if you use your player in MSC mode. Here is what you need:
- Some Player with Rockbox, having the scrobbler log enabled
(Currently you can do this via Settings - Playback Settings - Last.fm Log - Yes)
Rockbox will then keep a list of all played tracks in the storage root, the file is called .scrobbler.log
- A Windows machine with internet connection
- Some utility (http://www.rockbox.org/wiki/LastFMLog) which can upload the log to the last.fm website - I use QTScrobbler (http://qtscrob.sourceforge.net/) because it is the only utility that supports both Windows and the new protocol version 1.2 which allows scrobbling files in between the existing entries on your account - for example if you've been playing files on your pc and on your player at the same time. Download the newest scrobble-cli version for win32. (Currently version 0.10 (http://prdownloads.sourceforge.net/qtscrob/scrobble-cli-0.10.exe?download)). Put the scrobble-cli-x.xx.exe in the root of your player's storage.
- Your last.fm username and the password in MD5-hash format. Convert your plaintext password into MD5 with a utility like this (http://www.functions-online.com/md5.html). Qtscrobbler would also accept the password in plaintext, but this would mean your password is stored unencrypted in a file on your player. An MD5 hashed password looks like this: df5ea29924d39c3be8785734f13169c6.
- A batch file that runs the Qtscrobbler with the necessary parameters if you click it. Right-Click in the storage folder of your player and choose 'New - Text Document' and name it something like "scrobble.bat".
Then put the following text into the bat file (Edit it with Notepad):
.\scrobble-cli-0.10.exe -u Your_username -5 Your_MD5-hashed-password -l .\.scrobbler.log
This is it. Now if you plug in your player and open its folder, you double click the scrobble.bat file and it uploads the scrobbler log automatically to last.fm, if there is an internet connection.
You could also make an autostart.inf file that runs the bat file automatically when you plug in your player. This will work only on Windows machines with an operating system older than Windows 7 and only if there is no Antivirus program blocking the Autostart. The file would have to look like this:
[autorun]
OPEN=scrobble.bat
Have fun scrobbling and if there are any problems, please ask. Note: don't post your original md5-hashed password here. Replace some characters with *** or something like that. Include the error message if the batch file shows any.
-
when i try to upload it tells me they are too old, or something like that.
-
well then, i guess you have no problem understanding that error message ;)
lastfm does some filtering on the submitted entries so people don't fake the entries and such
-
last.fm only accepts scrobbles about one month old. QTscrobbler allows either to remove the older scrobbles before submitting, or to adjust all scrobbles dates so the none shows a date older than one month, and in that way submit all of your scrobbles. After the scrobbles are submitted, it's a good idea to remove the .scrobbler file manually from the root of your device, in case it's still present after the process.
-
i listened to the tracks the day I tried to upload it
-
Can you upload somewhere the .scrobbler file that is on your device, to give it a look?
-
i listened to the tracks the day I tried to upload it
Is your device's clock set correctly? Double check please.
-
lol.... it was a year off... Thanks for the help, it works now
-
I am having trouble getting it to work, it says file parsing error everytime i tell it to open the .bat file and the scrobbler file, that or it freezes up. I think it is either what i typed or where i have the files (all in the main directory of my Sansa Fuze v1).
Post Merge: May 11, 2011, 01:35:01 AM
Never mind, i just used http://scroblr.net/ instead to upload the whole file, i think it worked but only a few songs were logged.
-
Never mind, i just used http://scroblr.net/ instead to upload the whole file, i think it worked but only a few songs were logged.
Can I safely assume only the most recent ones actually show up on Last.FM?
Not to be pedantic, but if only a few songs were logged (show up in the scrobber log Rockbox creates) that is a bug we care about and would like to investigate, but if only a few of the logged songs show up on Last.FM that is likely to be expected for a variety of reasons.
-
I have just released a new open source utility called RockScrobbler. It sits in your system tray and monitors for any new drives that are inserted. If it finds a .scrobble.log on any inserted drive, it automatically submits the information to last.fm (using the new XML REST API).
You can download it, and the source code from here. It is licensed under GPL v3.
https://bitbucket.org/cs96and/rockscrobbler/downloads
It's Windows only at the moment, but I am planning on porting to Linux at some point. It uses the QT tool kit so should be relatively easy to do. I just neeed to re-implement the drive insertion notification part, which uses windows specific code at the moment.
If you spot any bugs or have any feature requests, please post them to the "Issues" page on the bitbucket site.
-
I have found a problem with RockScrobbler when installed on machines without QT in the path. This prevents the icon from displaying in the system tray.
I have released a new version which fixes this.
https://bitbucket.org/cs96and/rockscrobbler/downloads
You will have to uninstall the previous version first because the original version was installed with the wrong version number.
-
RockScrobbler v0.3 released. Nothing major, just a recompile against QT v4.8.0
https://bitbucket.org/cs96and/rockscrobbler/downloads
-
RockScrobbler v0.4 released. This release fixes an issue (caused by the upgrade to QT 4.8.0) which prevented any tracks from being submitted >:(
https://bitbucket.org/cs96and/rockscrobbler/downloads
-
Rockscrobbler 0.5 released which fixes an issue when submitting more than 50 tracks
https://bitbucket.org/cs96and/rockscrobbler/downloads
-
Any news on the Linux port ;) ?
-
I did take a brief look into it a few weeks ago. If I remove the windows specific code, it compiles and runs fine, but the auto insert notification doesn't work (that is the windows specific bit).
I need to get my head round D-Bus to get that working. If anyone knows D-Bus and wants to give me a hand please shout.