I'm trying to create a grouping of movies in Theatre mode so that we can choose movies based on their duration. Rather than group by specific duration (to the minute) I'd like to create "bands" of movie lengths.
I've added a new item in the Items To Show list and that appears.
I've set it's type to Expression and I'm using the below expression:
save(left([duration], find([Duration], :)), hours)
save(right([Duration], math(length([Duration])-find([Duration], :)-1)), mins)
if(compare(find([mins], :), >, 0), save(left([mins], find([mins], :)), mins), [mins])
save(math([hours]*60+[mins]), mins)
if(compare([mins], <, 100), Under 1:40,
if(compare([mins], <, 120), Under 2 hours,
if(compare([mins], <, 150), Under 2:30,
if(compare([mins], <, 180), Under 3 hours, Over 3 hours))))
This works in Zelda and gives me an appropriate string for each movie based on it's length. The additional variable processing is to that both 1:32:50 and 1:32 work.
In Theatre mode I'm not getting the behaviour I expect.
I have four groups, but they don't have labels.
I also have each movie grouped by minute, so I have my bands, plus the movies listed again but grouped by minute.
Any ides what I'm doing wrong, or if there's an easier way to achieve what I'm trying to do?
Thanks