![]() |
|
[Help] Smart Playlist rules don't work - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: XBMC General Help and Support (/forumdisplay.php?fid=111) +---- Forum: Windows support (/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 04:39 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 05:39 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 06:13 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 06:43 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 19:11 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 19:49 Cool! - DoctorBR - 2011-10-09 01:29 >>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 14:03 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 18:43 >>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 18:51 Think I need to get down the opticians its in the first post as well
|