Kodi Community Forum

Full Version: Last.FM Scrobbler
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
That was quick. Thanks!

EDIT:
Tested. Works in Kodi 17.0-BETA5
I suppose this only works with local library right? if you are using emby server and kodi addon it doesn´t work right?
i won't be able to tell you as i don't have such a setup.

the addon works with a local library as well as with streaming services (if the option is enabled in the addon settings).
you might want to check that out.

as always, in case you have issues, please post a Debug Log.
Thanks for the reply...

seems it don´t work as along trakt...

can´t have the addons on kodi and emby same time(at least for trakt :offtopicSmile.

But for example, if you are listening on addons emby wont scrobble.. but i have just tested last.fm addon on bandcamp addon and my emby music library and i didn't see no updates on last.fm site.

but thanks for the support
(2016-12-30, 09:54)Norin_Radd Wrote: [ -> ]But for example, if you are listening on addons emby wont scrobble.. but i have just tested last.fm addon on bandcamp addon and my emby music library and i didn't see no updates on last.fm site.

Does it scrobble to Last.FM with local files though? It might be your setup of the add-on that's off to begin with.
(2016-12-31, 13:20)Freso Wrote: [ -> ]
(2016-12-30, 09:54)Norin_Radd Wrote: [ -> ]But for example, if you are listening on addons emby wont scrobble.. but i have just tested last.fm addon on bandcamp addon and my emby music library and i didn't see no updates on last.fm site.

Does it scrobble to Last.FM with local files though? It might be your setup of the add-on that's off to begin with.

Not many options on config and i have all of them checked... eheheh

My media is all from emby addon but server is on the same network.

Edit:

It scroblles Mixcloud. Very Cool!

Doesn´t scrobble bandcamp addon nor music through the emby addon

Smile So it seems everything is working as it is supposed to.
Hi Ronie,

Thanks for all the work you have done with this add-on, I've searched through out this thread and I am unable to find a solution to my issue. I'm using Kodi on a RPi3 running Kodi version 16.1

I have installed the Last.FM add-on in hopes of scrobbling radio streamed tracks and tracks played on Spotify.

With debug logging enabled I have noticed that when I open a radio stream using InTune or Radio that the scrobbler picks up the artist name as the radio station being played and I can see this on my Last.FM profile Currently Playing, however it never corrects or picks up the correct tags and since the stream is continuous it pretty much does nothing else.

On the other hand running Kodi client on a Windows 8.1 with the same setup seems to scrobble fine. I do notice that the track tags are picked up by the windows client a lot quicker than the RPi3 client, as in, after double clicking a station the "now playing" displays the station name and then quickly changes to the track artist and track title but this is slightly delayed in the RPi3 and I am guessing this is why the last.fm scrobbler picks up the artist name as the station name and this never gets corrected.

Please find the corresponding log below.

Code:
volumio@volumio:~$ tail -200f /home/kodi/.kodi/temp/kodi.log | grep "service.scrobbler.lastfm"
tail: unrecognized file system type 0x794c7630 for '/home/kodi/.kodi/temp/kodi.log'. please report this to [email protected]. reverting to polling
11:29:50 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: onPlayBackStarted
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: song scrobbling enabled: True
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: radio scrobbling enabled: True
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: artist:
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: title: TheJazzGroove.com
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: path: http://main.streamthejazzgroove.com/
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: user flag: 0
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: failed to extract artist from title
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: tracktags: {'album': u'', 'title': u'TheJazzGroove.com', 'track': '0', 'timestamp': 1484652591, 'artist': u'TheJazzGroove.com', 'mbid': '', 'user': '0', 'streamid': '', 'duration': '0', 'path': u'http://main.streamthejazzgroove.com/'}
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: submission queue []
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: nowplaying
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: response {"nowplaying":{"artist":{"corrected":"0","#text":"TheJazzGroove.com"},"ignoredMessage":{"code":"0","#text":""},"album":{"corrected":"0","#text":""},"albumArtist":{"corrected":"0","#text":""},"track":{"corrected":"0","#text":"TheJazzGroove.com"}}}
11:29:51 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: save file to disk
13:24:19 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: onPlayBackStopped
13:24:19 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: submission queue [{'album': u'', 'title': u'TheJazzGroove.com', 'track': '0', 'timestamp': 1484652591, 'artist': u'TheJazzGroove.com', 'mbid': '', 'user': '0', 'streamid': '', 'duration': '0', 'path': u'http://main.streamthejazzgroove.com/'}]
13:24:19 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: scrobbling
13:24:19 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: removing unqualified items from the list
13:24:19 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: save file to disk
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: onPlayBackStarted
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: song scrobbling enabled: True
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: radio scrobbling enabled: True
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: artist:
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: title: Jazz FM (Jazz)
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: path: http://ADSI-E-01-CR.sharp-stream.com/jazzfmmobile.mp3
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: user flag: 0
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: failed to extract artist from title
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: tracktags: {'album': u'', 'title': u'Jazz FM (Jazz)', 'track': '0', 'timestamp': 1484659529, 'artist': u'Jazz FM (Jazz)', 'mbid': '', 'user': '0', 'streamid': '', 'duration': '0', 'path': u'http://ADSI-E-01-CR.sharp-stream.com/jazzfmmobile.mp3'}
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: submission queue []
13:25:29 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: nowplaying
13:25:30 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: response {"nowplaying":{"artist":{"corrected":"0","#text":"Jazz FM (Jazz)"},"ignoredMessage":{"code":"0","#text":""},"album":{"corrected":"0","#text":""},"albumArtist":{"corrected":"0","#text":""},"track":{"corrected":"0","#text":"Jazz FM (Jazz)"}}}
13:25:30 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: save file to disk

Is there something I can change to scrobble radio streams? I have tried uninstalling the add on and re-installing as well as deleting the add on from the system and starting again with no success.

Thanks in advance for your time.
any idea how long it takes for the rPi to pick up the correct artist/songs name?

currently the addon waits for 500ms after a song change, before reading the tags.
Hey Ronie, so I figured out why there was a delay of about 5 to 8 seconds before the ID tags were visible. It turns out that the RPi3 was running with a high CPU due to a misbehaving add-on I was experimenting with. After I removed the add-on and rebooted the PC I was able to see through the logs that the ID tags were revealed a lot quicker and this can also be seen in the log. However I notice that the scrobbler shows currently playing but never actually scrobbles the track. I can listen to different tracks with the correct tags on both my PC and RPi3 but none actually get scrobbled. I'm guessing this is because the radio streams are continuous and therefor the scrobbler does not recognise when a new track has started. Is there anything else I am missing? A specific radio add-on perhaps?

Below is the debug log which shows the scrobbler correctly picks up and extracts the correct ID tags but never actually scrobbles, after a while the "currently playing" on my last.fm PC client also disappears.

Code:
17:51:14 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: onPlayBackStarted
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: song scrobbling enabled: True
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: radio scrobbling enabled: True
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: artist:
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: title: Kim Pensyl - It Never Entered My Mind
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: path: http://listen.streamthejazzgroove.com/stream
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: user flag: 0
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: extracted artist: Kim Pensyl
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: extracted title: It Never Entered My Mind
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: tracktags: {'album': u'', 'title': u'It Never Entered My Mind', 'track': '0', 'timestamp': 1484675475, 'artist': u'Kim Pensyl', 'mbid': '', 'user': '0', 'streamid': '', 'duration': '0', 'path': u'http://listen.streamthejazzgroove.com/stream'}
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: submission queue []
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: nowplaying
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: response {"nowplaying":{"artist":{"corrected":"0","#text":"Kim Pensyl"},"ignoredMessage":{"code":"0","#text":""},"album":{"corrected":"0","#text":""},"albumArtist":{"corrected":"0","#text":""},"track":{"corrected":"0","#text":"It Never Entered My Mind"}}}
17:51:15 T:1760555952   DEBUG: service.scrobbler.lastfm - scrobbler: save file to disk

I have listened to several tracks but the scrobbler only picks up the first track and nothing else. The Windows log is exactly the same. I had a look at the actual code for the scrobbler but I'm no where near as good with python to understand what is actually going on how the scrobbler determines a new track in a radio stream.
the script waits for onPlayBackStarted messages from kodi.
it's very likely, if you're listening to an 'endless' stream, there won't be any when a song changes.
Well yes that makes perfect sense. Thank you very much for the clarification! DAMN YOU ENDLESS JAZZ STREAMS!!
Not working for me since Friday afternoon - stopped working randomly then.

just getting a "cant connect to last.fm" message.

if i go into configure to push it into doing its thing all i get is the message pops up.. virtually nothing in the log

log segment
====
00:36:13.876 T:1104024448 ERROR: Control 60 in window 10147 has been asked to focus, but it can't
00:36:13.977 T:1572916400 WARNING: Attempt to use invalid handle -1
00:36:41.854 T:1411194912 WARNING: Previous line repeats 2 times.
00:36:41.855 T:1411194912 ERROR: CGUITextureManager::GetTexturePath: could not find texture 'DefaultAddonLookAndFeel.png'
00:37:04.388 T:1104024448 ERROR: Previous line repeats 1 times.
00:37:04.388 T:1104024448 ERROR: Control 60 in window 10147 has been asked to focus, but it can't
00:37:04.476 T:1401463592 WARNING: Attempt to use invalid handle -1
00:37:35.054 T:1104024448 WARNING: Previous line repeats 2 times.
00:37:35.054 T:1104024448 ERROR: Control 50 in window 10025 has been asked to focus, but it can't
====


only an issue on the firestick. tried in both spmc existing setup and a clean install of kodi 16 (Clean install log - https://paste.ubuntu.com/24303566/ - literally installed kodi, installed scrobbler, ran it)

fine on the tablet also running 16



figured a workaround.. scrobbling to libre then having that scrobble to last fm Big Grin
Hi,

I have problem with scrobbling first song of an album on last.fm

Code:
11:26:54.038 T:5880   DEBUG: ffmpeg[16F8]: [flac] All info found
11:26:54.039 T:5880   DEBUG: ffmpeg[16F8]: [flac] stream 0: start_time: 0.000 duration: 2696.213
11:26:54.039 T:5880   DEBUG: ffmpeg[16F8]: [flac] stream 1: start_time: 0.000 duration: 2696.213
11:26:54.039 T:5880   DEBUG: ffmpeg[16F8]: [flac] format: start_time: 0.000 duration: 2696.213 bitrate=1099 kb/s
11:26:54.039 T:5880   DEBUG: ffmpeg[16F8]: [flac] After avformat_find_stream_info() pos: 182971 bytes read:214715 seeks:0 frames:2
11:26:54.039 T:5880   DEBUG: CDVDDemuxFFmpeg::Open - av_find_stream_info finished
11:26:54.039 T:5880    INFO: ffmpeg[16F8]: Input #0, flac, musicdb://songs/68130.fla':
11:26:54.039 T:5880    INFO: ffmpeg[16F8]:   Metadata:
11:26:54.040 T:5880    INFO: ffmpeg[16F8]:     ARTIST          : Sinister
11:26:54.040 T:5880    INFO: ffmpeg[16F8]:     ALBUM           : The Post-Apocalyptic Servant
11:26:54.040 T:5880    INFO: ffmpeg[16F8]:     DATE            : 2014
11:26:54.040 T:5880    INFO: ffmpeg[16F8]:     GENRE           : Death Metal
11:26:54.040 T:5880    INFO: ffmpeg[16F8]:     disc            : 1/2
11:26:54.040 T:5880    INFO: ffmpeg[16F8]:   Duration: 00:44:56.21, start: 0.000000, bitrate: 1099 kb/s
11:26:54.040 T:5880    INFO: ffmpeg[16F8]:     Stream #0:0, 1, 1/44100: Audio: flac, 44100 Hz, stereo, s16
11:26:54.041 T:5880    INFO: ffmpeg[16F8]:     Stream #0:1, 1, 1/90000: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 724x700 [SAR 72:72 DAR 181:175], 90k tbr, 90k tbn, 90k tbc
11:26:54.041 T:5880    INFO: ffmpeg[16F8]:     Metadata:
11:26:54.041 T:5880    INFO: ffmpeg[16F8]:       comment         : Cover (front)
11:26:54.041 T:5880   DEBUG: CDVDDemuxFFmpeg::AddStream ID: 0
11:26:54.041 T:5880   DEBUG: CDVDDemuxFFmpeg::AddStream ID: 1
11:26:54.041 T:5880   DEBUG: FactoryCodec - Audio: passthrough - Opening
11:26:54.042 T:5880   DEBUG: FactoryCodec - Audio: passthrough - Failed
11:26:54.042 T:5880   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
11:26:54.042 T:5880   DEBUG: FactoryCodec - Audio: FFmpeg - Opened
---------------------------------
11:26:54.189 T:5880   DEBUG: AudioDecoder::GetReplayGain - Final Replaygain applied: 1.000000, Track/Album Gain 89.000000, Peak 1.000000
--------------------------
11:26:54.809 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: song scrobbling enabled: True
11:26:54.809 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: radio scrobbling enabled: False
11:26:54.809 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: artist:
11:26:54.809 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: title:
11:26:54.809 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: path: musicdb://songs/68130.flac
11:26:54.809 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: user flag: 1
11:26:54.809 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: cannot scrobble track with no artist and track information
---------------------------
11:26:55.258 T:3256   DEBUG: Loading additional tag info for file smb://[....]/Sinister [2014][2CD] The Post-Apocalyptic Servant (Limited Ed.)/Sinister [2014] The Post-Apocalyptic Servant (Limited Ed.) - CD1.flac
--------------------------
11:36:05.764 T:1156   DEBUG: Loading additional tag info for file smb://[....]/Sinister [2014][2CD] The Post-Apocalyptic Servant (Limited Ed.)/Sinister [2014] The Post-Apocalyptic Servant (Limited Ed.) - CD1.flac
--------------------------
11:36:06.301 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: song scrobbling enabled: True
11:36:06.301 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: radio scrobbling enabled: False
11:36:06.301 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: artist: Sinister
11:36:06.301 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: title: The Sculpture Of Insanity
11:36:06.301 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: path: musicdb://songs/68132.flac
11:36:06.301 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: user flag: 1
11:36:06.302 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: tracktags: {'album': u'The Post-Apocalyptic Servant', 'title': u'The Sculpture Of Insanity', 'track': '3', 'timestamp': 1492335366, 'artist': u'Sinister', 'mbid': '', 'albumartist': u'', 'user': '1', 'streamid': '', 'duration': '212', 'path': u'musicdb://songs/68132.flac'}
11:36:06.302 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: submission queue [{'album': u'The Post-Apocalyptic Servant', 'title': u'The Macabre God', 'track': '2', 'timestamp': 1492335120, 'artist': u'Sinister', 'mbid': '', 'albumartist': u'', 'user': '1', 'streamid': '', 'duration': '246', 'path': u'musicdb://songs/68131.flac'}]
11:36:06.302 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: scrobbling
11:36:06.302 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: removing unqualified items from the list
--------------------------
11:39:36.751 T:3244   DEBUG: Loading additional tag info for file smb://[....]/Sinister [2014][2CD] The Post-Apocalyptic Servant (Limited Ed.)/Sinister [2014] The Post-Apocalyptic Servant (Limited Ed.) - CD1.flac
--------------------------
11:39:37.240 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: song scrobbling enabled: True
11:39:37.241 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: radio scrobbling enabled: False
11:39:37.241 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: artist: Sinister
11:39:37.241 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: title: The End Of All That Conquers
11:39:37.241 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: path: musicdb://songs/68133.flac
11:39:37.241 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: user flag: 1
11:39:37.241 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: tracktags: {'album': u'The Post-Apocalyptic Servant', 'title': u'The End Of All That Conquers', 'track': '4', 'timestamp': 1492335577, 'artist': u'Sinister', 'mbid': '', 'albumartist': u'', 'user': '1', 'streamid': '', 'duration': '271', 'path': u'musicdb://songs/68133.flac'}
11:39:37.241 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: submission queue [{'album': u'The Post-Apocalyptic Servant', 'title': u'The Sculpture Of Insanity', 'track': '3', 'timestamp': 1492335366, 'artist': u'Sinister', 'mbid': '', 'albumartist': u'', 'user': '1', 'streamid': '', 'duration': '212', 'path': u'musicdb://songs/68132.flac'}]
11:39:37.241 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: scrobbling
11:39:37.242 T:6068   DEBUG: service.scrobbler.lastfm - scrobbler: removing unqualified items from the list

Pastebin version https://pastebin.com/gh37HE58


I play music as CUE+IMAGEFILE.

From log I sense that last.fm plugin set information before kodi take action to Loading additional tag info for file.
In fact for first song are send with Artist and Title empty!!

As an error of kody or scrobbler? Can you force a call of "Loading additional tag info for file" before submitting information to last.fm?

Thanks
Hello,
yesterday I installed this neat addon and it is working grrreat. thank you!

a few things that I recognized:

2)
after installation, a popup came up, telling me, I need to enter the last.fm credentials. (this is very useful!)
after entering the correct credential in the addons configuration, the message (no username/pw entered) still came up a few times. (that was confusing) but the scrobbling worked, so credential were fine. after a while, no messages were shown. just wanted to mention my confusion about the popups ;-)

1)
DNLA scrobbling works, Airplay not.
I've listened to an Album via Airplay but none of the songs show up in my scrobbled list on last.fm
I started the same Album via DNLA and the songs are show up at last.fm.



I'm using a RaspberryPi 2 with
Kodi (17.3 Git:c1d9c5c). Platform: Linux ARM 32-bit
OpenELEC (official) - Version: 8.0.4, kernel: Linux ARM 32-bit version 4.9.30

Managing the music via Webinterface on my Apple MacBookPro from my Synology NAS (192.168.168.111)


This is the log where I started with playing via AirPlay and then switched to DNLA: https://pastebin.com/yRRVgxPu
(unfortunately, this is not a debug.log)
playing of music started at 11:35:17.488
I guess, I switched to DNLA at 12:32:51.785

at 12:49:55.091 I did a kodi restart (no reboot) to start reproducing an create a new debug log: https://pastebin.com/HQkvezYj

at 13:07:51.524 I stopped the AirPlayed Music and switched to DNLA

at 13:30:10.160 I stopped music and wrote this post ;-)

I hope this all can help you figuring out what happened.

If I can be of further assistance, let me know.

and again, thanks for this addon!!
please go to the addon settings and enable the 'submit streaming radio to last.fm'.

let me know if that gives you better results :-)

(if not, please post another Debug Log with airplayed music)
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17