[RELEASE] Scrobbler service for last.fm / libre.fm

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ronie Offline
Team-XBMC Member
Posts: 8,263
Joined: Jan 2009
Reputation: 108
Post: #1
this addon will work with nightly builds only!


currently the ability to submit song data to last.fm / libre.fm is built-in in XBMC.
we are planning to move this functionality to an addon in future releases of XBMC.

if you're currently using the song submission option in XBMC, please help out in testing this addon:
service.scrobbler-0.0.1.zip

after installing, disable the XBMC Song submission functionality (System > Music > Song submission)
and enable it in this addon (System > Add-ons > Enabled add-ons > Services > Scrobbler)

[Image: scrobbler.jpg]


please let me know if things are working ok or not...

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2012-05-31 00:32 by ronie.)
find quote
mattl Offline
Junior Member
Posts: 2
Joined: May 2012
Reputation: 0
Post: #2
Thanks for this!

I'll test it later, but I'm an XBMC user so I will certainly use this a whole bunch.

matt

--
Matt Lee
Founder, Libre.fm
find quote
EclipseGT Offline
Junior Member
Posts: 32
Joined: Nov 2009
Reputation: 0
Location: North Carolina
Post: #3
Working fine for me on Last.fm songs are scrobbling

but it doesn't show this like the original one does

"Scrobbling from XBMC Media Center"

[Image: watched-fanart.jpg] [Image: widget][Image: 1691318079.png]
OS: Windows 7 Ultimate x64 -XBMC git nightly build - Skin: !T svn updated nightly
MB: Asus M4A785-M
CPU: AMD Phenom X4 9850 - 2.5GHz @ 2.7GHz
RAM: Patriot PC6400 4GB DDR2
HD Space: (3) WD Caviar Black 1 TB, (1) WD Caviar Green 1.5 TB
find quote
ronie Offline
Team-XBMC Member
Posts: 8,263
Joined: Jan 2009
Reputation: 108
Post: #4
(2012-06-02 01:40)EclipseGT Wrote:  Working fine for me on Last.fm songs are scrobbling

but it doesn't show this like the original one does

"Scrobbling from XBMC Media Center"
it will in the final version.

for now i'm using a test key, just in case i f'ed something up in the script.
i don't wanna risk our xbmc key to be revoked because of my sloppy coding skillz :-)

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
EclipseGT Offline
Junior Member
Posts: 32
Joined: Nov 2009
Reputation: 0
Location: North Carolina
Post: #5
I've already scrobbled about 20 songs and seems to work fine for me

[Image: watched-fanart.jpg] [Image: widget][Image: 1691318079.png]
OS: Windows 7 Ultimate x64 -XBMC git nightly build - Skin: !T svn updated nightly
MB: Asus M4A785-M
CPU: AMD Phenom X4 9850 - 2.5GHz @ 2.7GHz
RAM: Patriot PC6400 4GB DDR2
HD Space: (3) WD Caviar Black 1 TB, (1) WD Caviar Green 1.5 TB
find quote
rivy Offline
Junior Member
Posts: 6
Joined: Feb 2012
Reputation: 0
Post: #6
@ronie,

The plugin works fine for me (just as the usual built-in scrobbler does).

However, just as the original built-in code, the service is not scrobbling songs from the Pandora plugin (see git://github.com/rivy/xbmc-pandora.git [use the most recent commit in master, v2.1.0]; discussion @ http://forum.xbmc.org/showthread.php?tid=70471). The plugin uses streamed songs, supplied from Pandora. I fixed this scrobbling error in an earlier incarnation of the Pandora plugin by adding duration information to the music description structure (https://github.com/rivy/xbmc-pandora/com...050953a4). However, the new JSON API doesn't report a song duration anymore, and so duration can't currently be set to a real, correct value.

Ultimately, the XBMC player does correctly determine the duration (and displays it in the song information overlay graphic), but the songs still won't scrobble. They are listed briefly as being "listening", but not ever finally scrobbled.

Is there a way to add logic, so that if the duration is missing (or 0, or negative), that the service calculates it (or, at least, just submits the scrobble after 30 seconds of play)?

- Roy
find quote
ronie Offline
Team-XBMC Member
Posts: 8,263
Joined: Jan 2009
Reputation: 108
Post: #7
(2012-08-13 16:27)rivy Wrote:  @ronie,

The plugin works fine for me (just as the usual built-in scrobbler does).

However, just as the original built-in code, the service is not scrobbling songs from the Pandora plugin (see git://github.com/rivy/xbmc-pandora.git [use the most recent commit in master, v2.1.0]; discussion @ http://forum.xbmc.org/showthread.php?tid=70471). The plugin uses streamed songs, supplied from Pandora. I fixed this scrobbling error in an earlier incarnation of the Pandora plugin by adding duration information to the music description structure (https://github.com/rivy/xbmc-pandora/com...050953a4). However, the new JSON API doesn't report a song duration anymore, and so duration can't currently be set to a real, correct value.

Ultimately, the XBMC player does correctly determine the duration (and displays it in the song information overlay graphic), but the songs still won't scrobble. They are listed briefly as being "listening", but not ever finally scrobbled.

Is there a way to add logic, so that if the duration is missing (or 0, or negative), that the service calculates it (or, at least, just submits the scrobble after 30 seconds of play)?

- Roy

just scrobble after 30 secs is no option, this would be against last.fm rules (the song needs to be played half at least).

i installed the pandora addon to see if there's something i can fix, but it appears to be only accessible to U.S. users.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
rivy Offline
Junior Member
Posts: 6
Joined: Feb 2012
Reputation: 0
Post: #8
(2012-08-15 22:46)ronie Wrote:  ...
just scrobble after 30 secs is no option, this would be against last.fm rules (the song needs to be played half at least).

i installed the pandora addon to see if there's something i can fix, but it appears to be only accessible to U.S. users.

Yes, I see it requests scrobbles only for songs after 50% of total duration or 4 minutes (whichever is less).

To test the Pandora plugin, try using Tunnel Bear VPN. It has VPN portals in the US and it's free for up to 500MB per month.
find quote
ronie Offline
Team-XBMC Member
Posts: 8,263
Joined: Jan 2009
Reputation: 108
Post: #9
(2012-08-16 01:31)rivy Wrote:  
(2012-08-15 22:46)ronie Wrote:  ...
just scrobble after 30 secs is no option, this would be against last.fm rules (the song needs to be played half at least).

i installed the pandora addon to see if there's something i can fix, but it appears to be only accessible to U.S. users.

Yes, I see it requests scrobbles only for songs after 50% of total duration or 4 minutes (whichever is less).

To test the Pandora plugin, try using Tunnel Bear VPN. It has VPN portals in the US and it's free for up to 500MB per month.

i'm out of luck again as it's not available for linux.
but frankly, i'm not interested in hacking my way around whatever limitations pandora has put in place.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote