[RELEASE] Last.FM Playlist Generator Script - Auto Generate Similar Music Playlists

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ErlendSB Offline
Senior Member
Posts: 176
Joined: Sep 2008
Reputation: 3
Location: Norway
Thumbs Up  [RELEASE] Last.FM Playlist Generator Script - Auto Generate Similar Music Playlists
Post: #1
This is a script that fills your music playlist based on the song you are currently listening to.

Hope someone will find it usefull

Installation
You can grab the addon from Mortstar's repository. I strongly suggest that you install the Repositories Installer Addon which allows you to browse and install repositories from the Unofficial Add-on Repositories wiki page.

Or if you prefer you can grab the .zip from github
However, downloading the repo as outlined above is much more desirable as you will keep the addon up-to-date as well as automatically downloading the correct dependencies.

Once you have mortstar's repo installed, you'll find the Last.FM playlist generator (Partymode) addon in the Program addons section. Install the addon from here

-Erlend
(This post was last modified: 2011-06-09 10:25 by ErlendSB.)
find quote
divingmule Offline
Skilled Python Coder
Posts: 1,297
Joined: Oct 2008
Reputation: 61
Post: #2
Thanks for the script! I hate making playlistSmile

Wondering if there is a way to add a shortcut to the context menu?
find quote
ErlendSB Offline
Senior Member
Posts: 176
Joined: Sep 2008
Reputation: 3
Location: Norway
Post: #3
Not without modifying the skin I believe.

I've added the script to the favourites window. (Open Context menu when script is selected - add to favourites).

And in the "Alaska Revisited" skin you can create submenu-items at the home screen for easy access.
find quote
bblauritzen Offline
Member
Posts: 89
Joined: Nov 2009
Reputation: 0
Post: #4
Sounds promising, will definitely give this a try.

Does it use your local library to generate the playlist or does it "scrape" last.fm for songs?
find quote
ErlendSB Offline
Senior Member
Posts: 176
Joined: Sep 2008
Reputation: 3
Location: Norway
Post: #5
It uses your local library
find quote
BlueArchon Offline
Junior Member
Posts: 6
Joined: May 2010
Reputation: 0
Post: #6
awesome, i've been waiting for something like this. Thanks!
find quote
aeiah Offline
Junior Member
Posts: 44
Joined: Jan 2010
Reputation: 0
Post: #7
ahh, this is fantastic. exaile on linux (and probably a few other music players) does this. much better than streaming stuff off last.fm.

adding it to the context menu isnt that hard, but is hackerish, obviously. its easiest if you can find an item in your context menu that you never use and simply replace it with the call to this script. if you add the script to your favourites you can find the code to call it by looking in favourites.xml, and just put it in the context menu xml in place of an unused function
find quote
bblauritzen Offline
Member
Posts: 89
Joined: Nov 2009
Reputation: 0
Post: #8
Works great.

Played some Bruce Springsteen and John Mellencamp, Tom Petty, Van Morrison amongst others showed up on the playlist..

Suggestions:
  • The ability to choose how many times an artist can appear on the playlist
  • The ability to choose how many tracks an artist reappearance must be apart (i got 3 Springsteen tracks in a row).
  • An option (context menu?) to save the playlist

Again, great work..
(This post was last modified: 2010-10-27 00:40 by bblauritzen.)
find quote
veysey Offline
Junior Member
Posts: 22
Joined: Nov 2009
Reputation: 0
Post: #9
Fun script, useful. Thanks!

One other note: "Install from zip" fails in Dharma RC1, but I was able to do it manually just fine.

Thanks again.
find quote
acegutta22 Offline
Member
Posts: 59
Joined: Aug 2010
Reputation: 0
Post: #10
it says no result found for me
find quote
jw76 Offline
Member
Posts: 72
Joined: Sep 2008
Reputation: 0
Post: #11
hey , great idea. It would be nice to have something similar to this built into the party mode feature . example being, fetch similar /artists/albums/tracks/genres etc from last.fm api , based on current playing track..

From the looks of it, this is a one time playlist generator. Does anyone know if it is possible to run this in the background or daemonize it, so that it is called after each track is played?

Idea being the following .

Code:
while isplayingaudio
     get current trackname, current artistname
     fetch X number of similar tracks from last.fm api based on genre/artist/album
     append results to playlist
find quote
veysey Offline
Junior Member
Posts: 22
Joined: Nov 2009
Reputation: 0
Post: #12
acegutta22 Wrote:it says no result found for me

Try a different song; that happens to me even on stuff that's only moderately obscure. If I seed it with a better known song, it work's fine.
find quote
goggolori Offline
Junior Member
Posts: 2
Joined: Jan 2011
Reputation: 0
Post: #13
I used the Windows Mediaportal for a while and really appreciated it to hear music for hours. Mediaportals last.fm plugin automatically searched for the next three songs. If I made changes to the playlist the plug-in recognized that and changed the next music selections.


jw76 Wrote:hey , great idea. It would be nice to have something similar to this built into the party mode feature . example being, fetch similar /artists/albums/tracks/genres etc from last.fm api , based on current playing track..

From the looks of it, this is a one time playlist generator. Does anyone know if it is possible to run this in the background or daemonize it, so that it is called after each track is played?

Idea being the following .

Code:
while isplayingaudio
     get current trackname, current artistname
     fetch X number of similar tracks from last.fm api based on genre/artist/album
     append results to playlist
find quote
ErlendSB Offline
Senior Member
Posts: 176
Joined: Sep 2008
Reputation: 3
Location: Norway
Post: #14
Yes I remember this from Mediaportal too (basically why I started on this script).
Great feature!

There is probably a way to run the script as a background process. If it is, I'll try and modify it.
If someone with greater python-fu than me wants to have a go it, the source is openly available here still:
http://code.google.com/p/lastfmplaylistgenerator/
find quote
bblauritzen Offline
Member
Posts: 89
Joined: Nov 2009
Reputation: 0
Post: #15
jw76 Wrote:hey , great idea. It would be nice to have something similar to this built into the party mode feature . example being, fetch similar /artists/albums/tracks/genres etc from last.fm api , based on current playing track..

From the looks of it, this is a one time playlist generator. Does anyone know if it is possible to run this in the background or daemonize it, so that it is called after each track is played?

Idea being the following .

Code:
while isplayingaudio
     get current trackname, current artistname
     fetch X number of similar tracks from last.fm api based on genre/artist/album
     append results to playlist

+1.

Before getting hooked on XBMC i used MediaMonkey with a similar plugin to play music, its a great way to get out in the dark corners of your music library.
find quote
Post Reply