XBMC Community Forum
[RELEASE] Last.FM Playlist Generator Script - Auto Generate Similar Music Playlists - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] Last.FM Playlist Generator Script - Auto Generate Similar Music Playlists (/showthread.php?tid=83915)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20


- kiboy6 - 2011-05-05 12:00

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


- ErlendSB - 2011-05-07 18:44

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)


- DarkHelmet - 2011-05-07 22:51

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.


- ErlendSB - 2011-05-08 09:57

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.


- DarkHelmet - 2011-05-08 10:34

I did as you told me, but it's still version 1.02 (confirmed by the changelog).


- ErlendSB - 2011-05-08 11:34

Try this:

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

Click script.lastfmplaylistgeneratorPM.zip on the bottom left hand side (under featured)


- DarkHelmet - 2011-05-08 12:05

Still the same Confused


- ErlendSB - 2011-05-08 13:30

wierd...Confused

The source code is here:http://lastfmplaylistgenerator.googlecode.com/svn/branches/partymode/pm.py

If you can replace the contents of the pm.py file with the latest version, you should be good.


- kiboy6 - 2011-05-08 15:37

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


- ErlendSB - 2011-05-08 17:00

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