Filter Movies by Duration
#1
Sometimes I only have a set time to watch a movie.

Is there a way I could use a range selector to filter movies by duration.

If this is not currently implemented, can someone move this to the feature request section.

I may be able to add this functionality if someone points me in the direction of the relevant files.
Reply
#2
Hi tevi,

Smart playlists can be used to achieve what you are looking for.
You can create the smart playlists from within Kodi, or create the files I have listed below and save them in /userdata/playlists/video

Hope this helps Smile


Movies less than 90 minutes.xsp
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>Movies less than 90 minutes</name>
    <match>all</match>
    <rule field="time" operator="lessthan">
        <value>00:90:00</value>
    </rule>
    <order direction="ascending">sorttitle</order>
</smartplaylist>

Movies more than 90 minutes but less than 120.xsp
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>Movies more than 90 minutes but less than 120</name>
    <match>all</match>
    <rule field="time" operator="greaterthan">
        <value>00:90:00</value>
    </rule>
    <rule field="time" operator="lessthan">
        <value>00:120:00</value>
    </rule>
    <order direction="ascending">sorttitle</order>
</smartplaylist>
4x R-Pi4b LibreELEC v10 | Aeon Nox: SiLVO | Flirc cases
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.4.19 | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
Filter Movies by Duration0