[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)
- DarkHelmet - 2011-04-10 17:57
Brilliant work! Love it, love it, love it. One request though. Since this is a music addon, would it be possible to put it into the addon section of music and not programs? Usually I don't even have the program section on my home screen of xbmc.
I'm using some remotes for my ipod touch and something really strange happens. With every program only the path of the songs of the generated playlist is displayed but not the names of the songs. It's as if the information of the contents of the playlists comes from the files section and not the music library. Hard to explain but I hope you get what I mean.
- DarkHelmet - 2011-04-24 12:56
The party mode really slows down my network connection somehow. I'm using a remote for my ipod and the party mode makes the wireless connection from the remote to my pc almost non respondent. My bluetooth connection to the pc is not affected. I have another remote using a bluetooth connection and I can use that remote just fine. Cpu load is fine, it's just the network connection that slows down.
Can anyone confirm this?
Using xbmc 10.1 on windows vista
- donabi - 2011-04-24 14:08
it does what it should.
but i have this strange "file/library", too.
No fanart is displayed when using this script.
It is not a big problem, but i would like to know, why the fanart isn't displayed?
- ErlendSB - 2011-04-24 17:57
The party mode version is polling the Last.FM api quite often (whenever a new track is starting to play), so it will generate some network trafic. But it hasn´t caused a problem with my wifi network.
I know about the fanart problem.
I have asked about it in this thread:
No replies yet
I´ll keep searching for a solution though
- kiboy6 - 2011-05-04 15:09
I just love this script - specifically the partymode version. Finally we have a slick "genius" like solution for XBMC.
Thanks so much.
One minor problem I'm experiencing though:
If I run the script once it works fine - I get the "select a song to start playlist generation" message as expected and everything is great.
However if I then restart my PC and launch the script again I get a message saying "Are you sure you want to exit partymode".
If i click No and then proceed to select a song, no last.fm playlist is auto generated.
Instead I have to click "Yes", and then re-launch the script in order for it to work as expected.
Is this something you are aware of? I can post a debug log if necessary.
Thanks again for the awesome script!
- ErlendSB - 2011-05-04 15:32
Yes. I am aware of it. But i haven't figured out a good way to fix it yet. It can be done by adding some code to autoexec.py for deleting the .pid file. It's something you'd have to do yourself, as the autoexec.py file is outside the realm of the addon.
I can't remember where I saw the code, but I'll post it if I find it again.
- DarkHelmet - 2011-05-04 22:53
How does the script pick a song, that is on more that one album? I have several tracks that are on a studio album and on one or more live albums. It seems like the script always picks that song from the same album. Would it be possible to randomize that somehow?
It's no big deal though, I was just wondering.
Have you found an answer as to why the generated list somehow seems to stem from the files section and not the library (names of the tracks are path names)? I also found that in the now playing view of xbmc the tracks are replaced by the paths for some seconds.
Otherwise really great work. I'm using it daily and love it. It's such a hassle to create a playlist in xbmc. This script is something I've been looking for for many years.
- kiboy6 - 2011-05-05 05:13
ErlendSB Wrote:Thanks mate!
Would love to see how that's possible thanks!
How is the script designed to work right now, in terms of enduring?
After the initial song is selected to start the playlist generation, if I then manually select a new song from the library will the script keep auto-generating songs?
Will it keep doing so until I run the script again to "exit party mode"? If so, (the script acts like a toggle switch) that's actually pretty cool. Will just have to make the edit to autoexec.py to make it either keep it's on/off status after a restart, or default to off.
- ErlendSB - 2011-05-05 11:24
DarkHelmet Wrote:How does the script pick a song, that is on more that one album? I have several tracks that are on a studio album and on one or more live albums. It seems like the script always picks that song from the same album. Would it be possible to randomize that somehow?
Songs are picked by searching through the xmbc music database for a matching track title and artist. It should be possible to randomize the selection if more than one track is found. It's a good idea! I'll look into it (note to self: order by random() limit 1)
I have not seen results from the files selection. The selected tracks are picked from the database, where i believe only library tracks reside?! Maybe you need to clean the music database. The tracks are added to the playlist through their path name, so I guess it could also be missing/corrupt mp3 tags.
- ErlendSB - 2011-05-05 11:37
kiboy6 Wrote:Would love to see how that's possible thanks!
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.
You're right in that the script acts as a toggle, 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.