[Help] Smart Playlist rules don't work - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59) +---- Thread: [Help] Smart Playlist rules don't work (/showthread.php?tid=111884) Pages:
1
2
|
[Help] Smart Playlist rules don't work - DoctorBR - 2011-10-08 Hello everyone! I need a smart playlist that shows only films greater than or equal to 120 min. XBMC with the code below shows all the movies over 2 hours, but is also showing all the movies less than 1 hour e 40 minutes. Code: <? Xml version = "1.0" encoding = "UTF-8" standalone = "yes"?> I'm using XBMC Pre-11 (Git-20110902-64DBB08) with Confluence. What am I doing wrong? Thanks in advance to anyone who can help. PASTBIN - clubwerks - 2011-10-08 Is time the right field? I thought XBMC used duration or some such thing. When Ember makes nfos for my movies, the duration is always set in seconds. - DoctorBR - 2011-10-08 clubwerks Wrote:Is time the right field? I thought XBMC used duration or some such thing. When Ember makes nfos for my movies, the duration is always set in seconds. Yes! The only rule field that allows me to filter by duration is the "time". I'm using the version of Ember from that link and for me the nfos files are created in the form of minutes. But do not think that's the problem, as I have created smart playlist that work perfectly, as the code below: ] <? xml version = "1.0" encoding = "UTF-8" standalone = "yes"?> <smartplaylist type="movies"> <name> Less than or equal to 100 min </ name> <match> one </ match> <rule field="time" operator="greaterthan"> 00:45 </ rule> <rule field="time" operator="lessthan"> 01:40 </ rule> <rule field="time" operator="is"> 01:40 </ rule> <order direction="ascending"> time </ order> </ smartplaylist> Do you have another suggestion? By the way, thanks for the help. - rocketpants - 2011-10-08 the smart playlist looks fine. But I've just tried to do similar and also get a bunch of movies that do not fit the criteria. It also isn't sorted correctly. Code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> If I change the duration to seconds - something like Code: <rule field="time" operator="greaterthan">12000</rule> Also tried changing to Code: <rule field="time" operator="greaterthan">149 min</rule> EDIT: Also tried changing the filed to durationinseconds as per the nfo files - nothing either Using Dharma with Transparency Its got me stumped - >>X<< - 2011-10-08 Smart playlist expects hours and minutes so you want 02:00 for 120 min seems obvious but its easy to get mixed up If you want to show movies equal and above 120 min the below seems to work however I didn't go through my whole movie collection and it does list those equal to 120 I've done it up to 3 hours (180 min) so if you have any movies over the 3 hour mark your need to change that value Code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> If you wanted a playlist for everything below 120 min you can use a playlist that works off the playlist above Code: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - clubwerks - 2011-10-08 Cool! - DoctorBR - 2011-10-09 >>X<<' Wrote:Smart playlist expects hours and minutes so you want 02:00 for 120 min seems obvious but its easy to get mixed up I used the code you suggested and it worked! I created several other smart playlists based on your model and all worked. I found some things about playlists that also helped a lot: Quote:<match> tag indicates how the <rule> tags should be matched.Thanks to everyone who responded and tried to help. - >>X<< - 2011-10-09 Forgot to mention you can set the playlist order to duration as well if you haven't noticed already either descending or ascending longest first to shortest last or vice versa Glad it worked for you - DoctorBR - 2011-10-09 >>X<<' Wrote:Forgot to mention you can set the playlist order to duration as well if you haven't noticed already either descending or ascending longest first to shortest last or vice versa I'm already using the order direction in my Smart Playlist. See: <? xml version = "1.0" encoding = "UTF-8" standalone = "yes"?> <smartplaylist type="movies"> <name> 2h01min to 2h15min </ name> <match>all</ match> <rule field="time" operator="greaterthan"> 02:00 </ rule> <rule field="time" operator="lessthan"> 02:16 </ rule> <order direction="ascending"> time </ order> </ smartplaylist> Thanks again. - >>X<< - 2011-10-09 Think I need to get down the opticians its in the first post as well - DoctorBR - 2011-10-11 Something is still wrong! After using <order direction="ascending">time</order> in my smart playlists, the films lasting less than 100 minutes are shown after the movies longer than 100 minutes. For example, the list starts with 100, 101, 102 ... 105, but should start with 91. The worst part is that only after the last film in the hundred (105 minutes) films less than 100 minutes to appear (91, 92, 93 ... 99). What am I doing wrong now?: Code: <? xml version = "1.0" encoding = "UTF-8" standalone = "yes"?> - >>X<< - 2011-10-11 In your above playlist you have <match>one</ match> It needs to be the below for it to work <match>all</ match> - DoctorBR - 2011-10-11 If I use <match> all </ match> nothing shows up (the smart playlist is empty.) Any other suggestions? - >>X<< - 2011-10-11 Yeah there's something strange going on there unless I'm missing something just editing a working playlist to use greater than 01:30 that's working and set to "all" stops it working It works if you use "one" but seems to order each list/rule separately which is why you get the ordering in your previous post Using match one isn't any good anyway as your get everything above and below the times you choose Sorry to say I don't have the answer to this one - DoctorBR - 2011-10-11 >>X<<' Wrote:Yeah there's something strange going on there unless I'm missing something just editing a working playlist to use greater than 01:30 that's working and set to "all" stops it workingExactly! >>X<<' Wrote:It works if you use "one" but seems to order each list/rule separately which is why you get the ordering in your previous post I think that is a bug, right? Any way, thanks for your help. |