A few handy Smart Playlists - and an issue

I thought it might be fun to share a few simple Smart Playlist examples that can help you sort through large movie libraries in different ways. I’m also having an issue with one at the end I would appreciate some feedback on.

Save these as a text file with the extension .xsp in /userdata/playlists/video/

Want to see just your 4K movies?

<smartplaylist type="movies">
    <name>4k Movies</name>
    <match>all</match>
    <rule field="videoresolution" operator="greaterthan">
        <value>1080</value>
    </rule>
    <order direction="ascending">sorttitle</order>
</smartplaylist>

How about movies that are in DolbyVision?

<smartplaylist type="movies">
    <name>Dolby Vision</name>
    <match>all</match>
    <rule field="HdrType" operator="is">
        <value>dolbyvision</value>
    </rule>
    <order direction="ascending">sorttitle</order>
</smartplaylist>

Movies with uncompressed audio:

<smartplaylist type="movies">
    <name>Lossless Audio</name>
    <match>one</match>
    <rule field="audiocodec" operator="is">
        <value>truehd</value>
    </rule>
    <rule field="audiocodec" operator="is">
        <value>dtshd_ma</value>
    </rule>
    <rule field="audiocodec" operator="is">
        <value>flac</value>
    </rule>
    <rule field="audiocodec" operator="is">
        <value>pcm_s16le</value>
    </rule>
    <rule field="audiocodec" operator="is">
        <value>pcm_s16be</value>
    </rule>
    <order direction="ascending">sorttitle</order>
</smartplaylist>

Display the top highest rated movies (customize the 7.7 rating to your preference):

<smartplaylist type="movies">
    <name>Highly Rated</name>
    <match>all</match>
    <rule field="rating" operator="greaterthan">
        <value>7.7</value>
    </rule>
    <order direction="descending">rating</order>
</smartplaylist>

Display the longest movies:

<smartplaylist type="movies">
    <name>Long Movies</name>
    <match>all</match>
    <rule field="time" operator="greaterthan">
        <value>02:24:00</value>
    </rule>
    <order direction="descending">time</order>
</smartplaylist>

I understand there’s other ways to do this, by sorting the whole library and limiting the number of results, but I preferred to just set up a minimum cutoff.

Now, I’m having an issue with the final one that sorts through movies by length. When I initially view this playlist, the times are all shown as even numbers (like 2 hours, 38 minutes and 0 seconds) and do not represent the length of the actual file, but rather some stored value presumably obtained when scraping. However, when I view these movies through normal browsing means, the time shows the exact length of the file, down to the seconds.

The issue is, director’s cuts are not being reflected in these default stored lengths, and that can affect the results by a SIGNIFICANT margin (think: Dances with Wolves). However, after viewing the playlist, file lengths start updating, and eventually it will reflect a more accurate representation (but presumably only movies that made the initial 2:24 cut). But this updated information never seems to be saved to the database, and the playlist keeps resetting to these initial default times.

Am I picking the wrong fields to use or something?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.