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

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kiboy6 Offline
Fan
Posts: 607
Joined: Mar 2009
Reputation: 0
Post: #51
ErlendSB Wrote:The idea is to have the script add new songs when you manually change a track. (To adapt to mood changes)
But I'm not happy with it. When I pick a new track, the whole album is added, when I'd like for only the selected track to be queued.

So for the script to work best, you'd better queue new songs to the playlist instead of playing them (queuing the album), if that makes sense.

This part is fine for me, because I run XBMC with the "Play the next song automatically" setting disabled. If I want to play an album I press "Queue" on the album. With your script, the last song of the album then attempts to generate a last.fm party playlist, which is fine by me too Smile

Quote:You're right in that the script acts as a toggle

That's fine too, although it seems that sometimes it stops working without me toggling it off. What events (if any) will stop the script attempting to generate a playlist? Pressing stop? Selecting "clear playlist" ?

Quote: and as you pointed out, you have to re-restart the script to make in work after restarting xbmc. I still haven't found the autotexec.py code. But I'll post it when i do. I just did a quick search for: "autoexec.py delete pid file". You might have more luck searching yourself. The idea is that xbmc itself needs to delete the .pid file inside the addon folder when xbmc starts. This prevents the "exit partymode" message from popping up when the script is not running.

Would love to do this, but my search only found this thread

I have close to zero experience in scripting, but if you could point me in the right direction of this whenever you have time that would be super kind of you.

I would also be perfectly happy, if the script just ran by default (with no dialogue) whenever XBMC starts - don't know if that's possible though.

Thanks so much Smile
(This post was last modified: 2011-05-05 12:09 by kiboy6.)
find quote
ErlendSB Online
Senior Member
Posts: 163
Joined: Sep 2008
Reputation: 2
Location: Norway
Post: #52
I've uploaded a new version of the partymode addon.
Changes are:
The script will now be "toggled off" before exiting xbmc (actually when xbmc restarts, by using the autoexec.py file)
This is tested on windows, and may not work on unix system, so please let me know if this is the case

When multiple similar tracks are found, the script will pick one randomly (haven't been able to test this, but I believe it should work)
find quote
DarkHelmet Offline
Senior Member
Posts: 297
Joined: Jul 2008
Reputation: 0
Location: Hamburg, Germany
Post: #53
ErlendSB Wrote:I've uploaded a new version of the partymode addon.
Changes are:
The script will now be "toggled off" before exiting xbmc (actually when xbmc restarts, by using the autoexec.py file)
This is tested on windows, and may not work on unix system, so please let me know if this is the case

When multiple similar tracks are found, the script will pick one randomly (haven't been able to test this, but I believe it should work)

Could you please check your upload again? When I download I still get version 1.02.
find quote
ErlendSB Online
Senior Member
Posts: 163
Joined: Sep 2008
Reputation: 2
Location: Norway
Post: #54
Hmm. I get 1.0.3 when I download it. Maybe it´s having trouble upgrading if the script is running. You can make sure it´s the right version by looking inside the addon.xml/changelog.txt file within the zip file. It should say version 1.0.3 somewhere at the top.

You could also try deleting the script.lastfmplaylistgeneratorPM folder, and install fresh.
find quote
DarkHelmet Offline
Senior Member
Posts: 297
Joined: Jul 2008
Reputation: 0
Location: Hamburg, Germany
Post: #55
I did as you told me, but it's still version 1.02 (confirmed by the changelog).
find quote
ErlendSB Online
Senior Member
Posts: 163
Joined: Sep 2008
Reputation: 2
Location: Norway
Post: #56
Try this:

Go to:
http://code.google.com/p/lastfmplaylistgenerator/

Click script.lastfmplaylistgeneratorPM.zip on the bottom left hand side (under featured)
find quote
DarkHelmet Offline
Senior Member
Posts: 297
Joined: Jul 2008
Reputation: 0
Location: Hamburg, Germany
Post: #57
Still the same Confused
find quote
ErlendSB Online
Senior Member
Posts: 163
Joined: Sep 2008
Reputation: 2
Location: Norway
Post: #58
wierd...Confused

The source code is here:http://lastfmplaylistgenerator.googlecod...mode/pm.py

If you can replace the contents of the pm.py file with the latest version, you should be good.
find quote
kiboy6 Offline
Fan
Posts: 607
Joined: Mar 2009
Reputation: 0
Post: #59
Hi Erlend - I'm having some real difficulties updating here too...

If in "install from zip file" the version doesn't change, and if I manually copy over the contents of the addon folder (including manually replacing the contents of pm.py with the source code you psted above) then I get a pm.py error when I try to run the script....

Strange...

Looking forward to getting it going - sound like exactly what I was hoping for! Thanks Smile
find quote
ErlendSB Online
Senior Member
Posts: 163
Joined: Sep 2008
Reputation: 2
Location: Norway
Post: #60
Arg. It works here. Can u post back what xbmc.log says. That would help. I'll try another machine here aswell. It's strange but I probably did something silly. I'll look into it tonight
find quote
Post Reply