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<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
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.
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!