Page 1 of 1

Trying to sort between Films and TV shows

PostPosted: Sat Mar 07, 2015 9:21 am
by Lanista
Hi,

I am trying to build a rule that sorts into different folders the contents of my Movies directory. Apart from personal movies, I have other 2 directories: Films and TV Shows.

When I build the rule, a first obvious condition is the size of the file, i.e. TV Shows, at least in the quality I handle them, normally do not go over 750 MB, while movies are usually larger. However, lots of SD movies are smaller than 750 MB, so I must use a second rule to discriminate them: length of movie.

Thus, I am trying to build a rule that says that if any of two conditions are met, then move the file to the Films folder, the two conditions being (i) size larger than 750 MB and, here is where I am stuck (ii) length of movie being more than 4000.

I have noticed that under the "other" conditions, there is a field called "Duración" (sorry, I do not know why my Hazel version offers me these fields in Spanish (I live in Spain)). The description states "Length of this item in seconds". This is why I write 4000, which in seconds should be a bit over an hour (3600 seconds), and thus, qualify the file as a Film instead of a TV Show.

However, when I have a file of 400 MB and a length of 1 hour and half, the file is still going to the TV Shows folder, no matter what I try to change. What am I doing wrong? (in case you need, the Films rule is primary and the TV Shows only kicks in after the Film one has applied (and on remaining files), so this must mean that the 4000 rule is not working...)

Thanks for any help you may give me. I am becoming crazy.

Have a good weekend.

Re: Trying to sort between Films and TV shows

PostPosted: Mon Mar 09, 2015 11:59 am
by Mr_Noodle
Use the preview (the "eye" button) to see what it's matching. Select a file and click on the "i" button which will show you all the attributes and highlight which fields are the ones that match.

Re: Trying to sort between Films and TV shows

PostPosted: Thu Mar 12, 2015 7:27 pm
by Lanista
Thanks Mr. Noodle. Unfortunately, when I preview and check the info on the rule in question, I do not see anything related to seconds or time. My doubt is, the "duration" or "length" or whatever term in English, does it actually measure seconds?. I cannot see to make it happen to my benefit.

Sorry, if I am not catching it.

Thanks in advance

Re: Trying to sort between Films and TV shows

PostPosted: Fri Mar 13, 2015 11:15 am
by Mr_Noodle
There is a "Duration" attribute but if it's not there, then Spotlight is not indexing it. There may be several reasons for this but usually it's because the file type is not well supported (like mkv). You'll need to find an app which provides a proper Spotlight importer in this case.

Re: Trying to sort between Films and TV shows

PostPosted: Sat Mar 14, 2015 5:12 am
by Lanista
Thanks a lot. I had not considered that.