Rockbox Technical Forums

Third Party => Other Utilities => Topic started by: cs96and on November 21, 2011, 11:47:26 AM

Title: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on November 21, 2011, 11:47:26 AM
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.

Can someone update this wiki page please?
http://www.rockbox.org/wiki/LastFMLog


Post Merge: November 22, 2011, 07:36:10 AM
I see someone has updated the wiki, thanks.

However, most of the information in the grid is wrong.  Can someone please change it to the following...

License: GPL
Windows: Yes, all other platforms No
Web: No
Gui: Yes
CLI: No
Timeless Support: No
Protocol 1.2: No
Protocol 2.0: Yes
Version 1.1 Log: Yes
Multiple site submission: No idea what this is, so I'm guessing No.
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on November 22, 2011, 02:15:31 PM
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.
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: shayguitarra on December 07, 2011, 06:44:14 PM
This looks interesting!

I look forward to trying it out.

Thanks.
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: KiwiCam on December 08, 2011, 01:37:31 PM
That looks interesting.

I don't use last.fm, but if you found the time and liked my suggestion, perhaps you could look to implementing this:

Rock Remover - (any name would do) An icon that appears in your tray and allows you to just click it to "safely remove the MP3 player". Yes, in Windows this is already there (but that's at least 2 clicks), but strangely enough, there's no super simple way to do this in Linux. I use a combo of gPodder and puddletag. After finishing with puddletag, I have to open a nautilus window and unmount the MP3 player (also two clicks). A one click icon would be so much quicker (morning rush) and it's appearance would also quickly show that the MP3 Player is connected.

You could just add this feature to your utility and allow the last.fm option to be switched off with a toggle. What do you think?
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on February 02, 2012, 10:07:47 AM
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  Angry

https://bitbucket.org/cs96and/rockscrobbler/downloads

From now on, I will just only information about any new releases to this thread...
http://forums.rockbox.org/index.php/topic,25454.0.html
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on February 08, 2012, 05:25:08 AM
Rockscrobbler 0.5 released which fixes an issue when submitting more than 50 tracks

https://bitbucket.org/cs96and/rockscrobbler/downloads
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on February 21, 2012, 05:47:53 AM
RockScrobbler v0.6 released.  This has a much improved login/logout screen which displays the user's avatar when logged in.  It also fixes the multiple balloon popup issue when scrobbling more than 50 tracks.

https://bitbucket.org/cs96and/rockscrobbler/downloads
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on April 16, 2012, 09:45:35 AM
Rock Scrobbler v0.7 released which fixes an issue when scrobbling track or artist names containing a '+' character.  This version also allows you to display your last.fm avatar as the system tray icon.

https://bitbucket.org/cs96and/rockscrobbler/downloads
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: HiRsch on May 30, 2012, 06:26:25 AM
hi there,
this tool is great!

any chance you could include syncing the playcount in the database to the last fm playcount?

cheers
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on May 30, 2012, 06:30:45 AM
You mean the database on the device?  I'm not sure I think that is a good idea.  If you listen to a track on another device (e.g. your computer), your last.fm play count will increase.  Why should that affect the play count on your rock box device?
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: HiRsch on May 31, 2012, 07:02:08 AM
i would just like to keep the playcounts syncronized over my devices ;-) my foobar installation for example syncronizes its playcount with lastFM like that. while it transmits the currently playing song to lastFM, it pulls the alltime playcount for that song from lastFM and updates it locally. just thought it might be a nice feature. that way if i happen to have to rebuild the library on my rockbox i wouldn't have to start all over with the playcounts.
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: Predelnik on June 30, 2012, 05:42:38 PM
Your program is very very nice, the only thing i'm a little concerned with is that it searches for .scrobbler.log in root directory but on my player (samsung yp-r0) rockbox lives in \.rockbox dir (i think it's not the only case here), so i would be glad if program did check automatically for .scrobbler.log in that dir too. Thank you in advance)
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: evilnick on June 30, 2012, 07:57:15 PM
Rockbox is in ".rockbox", yes, but the .scrobbler.log file should be written to the root of the player, regardless.
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: Predelnik on July 01, 2012, 03:14:04 AM
Rockbox is in ".rockbox", yes, but the .scrobbler.log file should be written to the root of the player, regardless.
Then i guess it's my player build problem and rockbox_log is written to the root, so i guess there is no actual problem to write something to the root.
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on August 13, 2012, 07:38:40 AM
In case you aren't following the BitBucket page, RockScrobbler is now up to v0.8.1, which uses a better installer, and fixes an issue with the timestamps of submitted tracks.

BTW, if anyone has any D-Bus experience and wants to help getting the Linux port running, please get in touch.
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on April 23, 2013, 06:40:51 AM
v0.10 is now out.  This is just upgrades the version of QT to v5.0.2
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: Predelnik on September 27, 2013, 01:17:36 PM
OK I'm using Rock Scrobbler for quite a while and it works great, but today I run into the problem as such:
.scrobbler file wasn't being deleted for some reason, I still don't know why, but well in result I've got from 2 to 10 copies of one scrobble until I've noticed it, huge job was to clear all this mess :(
Well it would be great if there would be prevention mechanism for situations as such, my first suggestion would be to display distinct warning/error message box about file not being deleted.

Edit: Btw the fact that .scrobbler.log isn't being deleted is your bug sadly. My player mounts it's own storage and SD card simultaneously so while scrobbling for player is being done m_currentScrobbleFile already becomes empty because of checking of it's existence on SD, so it finally ends up not being removed.
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on October 02, 2013, 05:08:26 PM
Thanks for the bug report.  This is now fixed in v0.12
https://bitbucket.org/cs96and/rockscrobbler/issue/6/scrobblerlog-isnt-being-removed
https://bitbucket.org/cs96and/rockscrobbler/downloads
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: Predelnik on October 05, 2013, 07:43:42 AM
Thank you for fixing it fast)
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: usputni_boem on October 18, 2014, 07:38:03 AM
I can't start Rock Scrobbler. First, the problem was there were some missing dll files (msvcr100 i msvcp100), but when I downloaded them, the Scrobbler crashes with "The application was unable to start correctly" error message.
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: cs96and on January 08, 2015, 05:18:47 AM
Which version are you running?  RockScrobbler requires MSVCP120.dll / MSVCR120.dll, not MSVCP100.dll / MSVCR100.dll.  As the RockScrobbler home page states, you must install the Visual C++ 2013 runtime., which can be downloaded from here...

http://www.microsoft.com/en-gb/download/details.aspx?id=40784.

Click "Download" then select vcredist_x86.exe

Also, please submit any further problems on the RockScrobbler BitBucket issues page
https://bitbucket.org/cs96and/rockscrobbler/issues
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: Djurowski on May 11, 2018, 10:19:17 AM
I've been using Rock Scrobbler for a while now, but lately it has been ignoring all the tracks it should have been scrobbling. Help?
Title: Re: Rock Scrobbler - new utility to automatically scrobble tracks
Post by: Duceboia on June 07, 2018, 11:51:21 AM
Me too... no more scrobbles lately, the log says something about timeless format.