Kodi Community Forum

Full Version: smart playlists not giving expected results
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm not new to smart playlists as I've used them for years on my Windows PC. However, I'm attempting to use very similar lists, but getting different results on Rpi running OSMC Kodi 16.1. I've tried Aeon Nox 5 Redux, Confluence and default skins with same results. I've made the required entries in the favourites.xml and keyboard.xml.

Working example playlist on PC:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>All Movies</name>
    <match>one</match>
    <rule field="path" operator="contains">
        <value>smb://SERVER3/video/Movies/</value>
    </rule>
    <rule field="path" operator="contains">
        <value>smb://SERVER3/video/Movie Sets/</value>
    </rule>
    <rule field="path" operator="contains">
        <value>smb://SERVER3/video/Mom Shared/</value>
    </rule>
    <rule field="path" operator="contains">
        <value>smb://SERVER3/video/Westerns/</value>
    </rule>
    <rule field="path" operator="contains">
        <value>smb://SERVER3/video/Christmas/</value>
    </rule>
    <rule field="path" operator="contains">
        <value>smb://SERVER3/video/Comedy/</value>
    </rule>
    <order direction="ascending">sorttitle</order>
</smartplaylist>

Rpi incorrect playlist: If I use contains I get ONLY all movie COLLECTIONS, even those not in the desired path, and therefore no movies from the Movies folder.
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>test</name>
    <match>one</match>
    <rule field="path" operator="contains">
        <value>smb://KublerNAS1/Video/Movies/</value>
    </rule>
    <rule field="path" operator="contains">
        <value>smb://KublerNAS1/Video/Movie Sets/</value>
    </rule>
</smartplaylist>

Rpi incorrect playlist: If I use startswith I get ALL movies and collections, even those not in the desired paths. So my entire library.
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>Movies and Sets</name>
    <match>one</match>
    <rule field="path" operator="startswith">
        <value>smb://KublerNAS1/Video/Movie Sets</value>
    </rule>
    <rule field="path" operator="startswith">
        <value>smb://KublerNAS1/Video/Movies</value>
    </rule>
    <order direction="ascending">sorttitle</order>
</smartplaylist>

If I use "is", I get two dots "..".
BUMP
Doesn't anyone have an idea why these smart playlists aren't working?