Kodi Community Forum

Full Version: LastFM Tube
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Available from my beta repo and the Official Kodi repository.

I'm a long time LastFM fan going far back in XBMC history... Most of their api/service has been stripped from its glory! for those who still scrobble this plugin will access your user history info and pair it with youtube videos found on the net. Enjoy!!
Thanks for this!  I can't believe I'm the first reply.  It still partially works.  Main problem is that Top Tracks gets an error (see log):

19:26:07.349 T:3439211264 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xcc in position 36: ordinal not in range(128)
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/plugin.audio.lastfmtube/default.py", line 350, in <module>
elif mode == 3: LastFMTube().getTopTracks(user, pwd)
File "/home/osmc/.kodi/addons/plugin.audio.lastfmtube/default.py", line 255, in getTopTracks
name = encodeString(str(top.item))
File "/home/osmc/.kodi/addons/plugin.audio.lastfmtube/default.py", line 91, in encodeString
return ''.join(i for i in string.encode('utf8') if ord(i)<128)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 36: ordinal not in range(128)
-->End of Python script error report<--
19:26:07.642 T:4079317584 ERROR: GetDirectory - Error getting plugin://plugin.audio.lastfmtube/?mode=3&name=Top%20Tracks&pwd=660f95562af2836686069e4da4950a1b&url&user=myuser
19:26:07.642 T:4079317584 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.lastfmtube/?mode=3&name=Top%20Tracks&pwd=660f95562af2836686069e4da4950a1b&url&user=myuser) failed]
I didn't create an API key.  Just username/password.  Would doing so help do you think?   

Recently Played section works. Loved Tracks seemed to list a couple, but I don't have many.

Besides fixing Top Tracks, couple areas for improvement I notice:
1. the YouTube background behind the list of Recent Tracks results videos is extremely lo-res. Smile
2. It would be helpful to somehow indicate who the uploader is, the upload date, maybe description. Maybe with "info" button?

Question:  When one video plays, what plays next? 

Thanks, man!
not working
Hello. May I please ask if it is possible to play and scrobble youtube music that is not in my tracks on last.fm? I would like to listen and scrobble to new music. I can play it in youbube add-on in KODI, but that obciously does not scrobble and the LastFM Tube only allows to play music contained in last.fm account..