•   
  • 1
  • 16
  • 17
  • 18
  • 19
  • 20(current)
[RELEASE] Last.FM Playlist Generator Script - Auto Generate Similar Music Playlists
(2021-04-24, 21:39)rkw2 Wrote: I've installed @Ambidex script, and then I realized in all my years of using Kodi, I've never run a script before. When I go to add-ons and click run it tells me to play a song first even when a song is playing. Is there some trick to running this that I'm missing. I apologize for the noob question. This is exactly what I'm looking to do with my Kodi installation and I'd love wasn't guidance on how to use it.
Thanks!
First off all credit to the original authors.  I wouldn't have had any idea on how to go about doing this.

To answer your question, looking at the code you need to start a song because that's how this particular script works.  It only 'kicks in' when the next song starts.

When you run the script it clears the current playlist and then waits for playback to start again (any currently play song doesn't count for this).  When playback starts again, if it's music that started playing the script does its magic (last.fm query etc).

Note that you may get asked to exit party mode when you run the script.  If that happens just hit yes and run it again.  It's related to how the script makes sure only one instance of it is running.
Reply
Thank you!
Reply
thanks it works well
Reply
@Ambidex Can I just suggest that you remove your API key and add an option to the addon settings for using a user's API key.  Just that if a lot of people start using this you might find that your personal key gets banned and it makes more sense to me for each user to use their own key, thus avoiding any rate-limiting issues etc.
Learning Linux the hard way !!
Reply
(2021-05-04, 18:45)black_eagle Wrote: @Ambidex Can I just suggest that you remove your API key and add an option to the addon settings for using a user's API key.  Just that if a lot of people start using this you might find that your personal key gets banned and it makes more sense to me for each user to use their own key, thus avoiding any rate-limiting issues etc.
Great idea.  I've added the ability to configure your own Last.fm API key.  I've also fixed the addon language files so that the addon config description strings make sense again.  There does seem to be a Kodi bug in the keyboard pop-up input window where it uses the skin's description and not the addon's.

Note that I still fallback to the current hard-coded API key at the moment when no API key is configured.  This was done to have a point in time where configuring the API key is optional.  It was for user friendliness, but I admit I would not have done this if it was my personal API key in there right now.

Anyone reading,

API keys require a Last.fm account and can be generated here: https://www.last.fm/api/account/create.  'Callback URL' was optional for me.  I put Kodi for the application but I'm guessing you can put anything.  Also, record the API key somewhere immediately.  I couldn't find it again last night in my account settings but it's possible I just missed it.
Reply
  •   
  • 1
  • 16
  • 17
  • 18
  • 19
  • 20(current)



Logout Mark Read Team Forum Stats Members Help
[RELEASE] Last.FM Playlist Generator Script - Auto Generate Similar Music Playlists5
This forum uses Lukasz Tkacz MyBB addons.