Posts: 28
Joined: May 2008
Reputation:
0
I discovered my self having 500+ albums but always choosing my music in a subset of .. maybe 50 albums. But I like all of my 500 albums.. so I've thought that it can be useful to have a kind of "play a random album" feature (I like to hear an album in his recorded order, and not shuffling everything)
goggling a little bit, I've found that this option is in Amarok and in Itunes, And i've found a plugin in winamp to do-it (it's what I'm using right now) so I can conclude that its a feature useful for other people also.
I wish to know if this feature can be added to xbmc,and if not, if anyone think it can be done by a plugin. I'm a programmer, never touched python or the xbmc source code, but if I get some clues on how to do the plugin I think I can do it myself, and share it to every one.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
A smartplaylist can do this - just setup an album playlist with no rules, sort by random, limit 1.
That'll pull out a random album each time you click on it -> play and away you go.
Posts: 28
Joined: May 2008
Reputation:
0
that was perfect...
couldn't set limit to 1, because the minimum is 10... but it's OK, I can press stop
thanks
Posts: 26,215
Joined: Oct 2003
Reputation:
187
You can probably set the minimum to 1 by editing the XML it creates (userdata/playlists/music)
Posts: 18
Joined: Apr 2012
Reputation:
0
Hello, did you ever get this going? I'm really curious to do the same thing. I want to play all the albums one by one at random. Not random songs. I want to keep the albums random but play the tracks in order.
Any luck? Can you post the xml you created?
-Thanks
Posts: 17,859
Joined: Jul 2011
Reputation:
371
use the internal smartplaylists creator
Posts: 18
Joined: Apr 2012
Reputation:
0
I did, but it didn't start playing. It just would give a list of all the albums. I can then go in and play each individual album, but it doesn't play from one to the next.
What did I miss?
Here is the playlist it created:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="albums">
<name>test</name>
<match>all</match>
<rule field="album" operator="contains"></rule>
</smartplaylist>
-Thanks
Posts: 17,390
Joined: Aug 2007
Reputation:
583
Hitcher
Team-Kodi Member
Posts: 17,390
2012-11-09, 21:27
(This post was last modified: 2012-11-09, 21:27 by Hitcher.)
Or use a skin that uses the Random Items or Skin Widgets scripts.
Posts: 17,859
Joined: Jul 2011
Reputation:
371
Use context menu to play it
Posts: 18
Joined: Apr 2012
Reputation:
0
Is there a way to set the playlist to just play once selected? I'd like to assign a button on the remote to just play it when pressed as I want to setup a few different playlists.
Posts: 28
Joined: May 2008
Reputation:
0
Here is my xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="albums">
<name>Random Album</name>
<match>all</match>
<rule field="genre" operator="doesnotcontain">Infantil</rule>
<limit>1</limit>
<order direction="ascending">random</order>
</smartplaylist>
and if you have a higher limit and play the list using context menu (without entering the list) you can play all the albums