Smart Playlist for Cartoons in XBMC v13
#1
I've been trying to get a "Cartoons" folder created for the kids.

My skin is the stock Confluence that comes in v13.

I followed the wiki on Smart Playlists, but it did not include a Cartoon example (that'd be great!).

On the media PC, the storage tank is mapped to the D: drive. Is that hurting me?

Here is a list of my folders:

Image

I created this XML file called Cartoons.xsp and placed it in the "C:\Program Files (x86)\XBMC\portable_data\userdata\playlists\video" folder:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="episodes">
    <name>Cartoons</name>
    <match>all</match>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Adventure Time</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Backyardigans</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Dinosaur Train</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Droopy</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Gumball</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Invader_Zim</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Kipper</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Looney Tunes</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Peep</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Phineas and Ferb</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Pingu</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Regular Show</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\Schoolhouse Rock</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>D:\All Series\SpongeBob</value>
    </rule>
    <group mixed="true">sets</group>
    <order direction="ascending">random</order>
</smartplaylist>

When I go into my Playlists folder, I see Cartoons in there, but there is nothing in it.

How do I make XBMC "read" or "load" the contents?

Did I do something wrong in my configuration?
Reply
#2
Classic mistake Smile

You've specified match all. It's impossible to match all of those rules as they're mutually exclusive. Use the UI to switch it to match one.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
I went into edit, but I don't see anywhere to change it to match one.

Is it called something else in this screenshot below?

Image

Since that didn't work,

I went back into the XML file, and I physically deleted the line with <match>all</match>.

I closed XMBC, then reopened it, but the folder is still empty.

Is there anything else you can see that is obvious that I did incorrect?
Reply
#4
It's the "Items must match" under Playlist Options which in your screenshot is set to "all of the rules"
Reply
#5
I finally managed to get this to work.

It appears that the directories all need to end with a "\" character.

Odd, but it works.

Also, I had to limit it to only 25 shows. It was taking XBMC a long time to generate a random list of 1000, and there really was no need to ever do that anyway.

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="episodes">
    <name>Cartoons</name>
    <match>one</match>
    <rule field="path" operator="startswith"><value>D:\All Series\Adventure Time\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Backyardigans\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Dinosaur Train\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Droopy\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Gumball\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Invader_Zim\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Kipper\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Looney Tunes\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Peep\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Phineas and Ferb\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Pingu\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Regular Show\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\Schoolhouse Rock\</value></rule>
    <rule field="path" operator="startswith"><value>D:\All Series\SpongeBob\</value></rule>
    <group mixed="true">sets</group>
    <limit>25</limit>
    <order direction="ascending">random</order>
</smartplaylist>

I hope my listing up there benefits someone.

If anyone viewing this knows how to update the wiki, please feel free to use my listing above as an example.
Reply
#6
Anyone still listening?

In the above XML code, is <match>one</match> responsible for only one show playing at a time?

If not, how do I get the next show to play automatically?
Reply
#7
No, that has nothing to do with it. Smartplaylists are really "smart folders". If you want it to play more than one, you need to press PLAY on the smart folder. If you want to play from a specific item you can likely do so from the context menu.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Smart Playlist for Cartoons in XBMC v131