I've created my first set of rules in Hazel -- or rather built upon one of the default ones. Basically, I'm monitoring the downloads folder so whenever a video is added, it will be automatically to the movies folder (which has its own rules to fetch subtitles but that's beyond the thing I'm looking to get help with).
Moving files and even looking into subfolder works, but sometime torrents include a bunch of other files (nfo, txt, screenshots, sample video), and that's being left over when Hazel moves my videos to the Movies folder. Is there a way to get rid of these files automatically?
Keep in mind that the rules are applied on the Downloads folder, where a bunch of other stuff ends up everyday, not necessarily just videos. So I just can't create a rule to delete everything that's not a video. Any ideas?
Here's what I have so far
Rule #1 Remove empty folders (my logic tells me this should go at the end but it only works when it goes first)
- If all conditions are met
-- Kind is folder
-- Sub-file/folder count is 0
-Then
-- move to trash
Rule #2 Dive into subfolders
- if all conditions are met
-- kind is folder
- then
-- run rules on folder contents
Rule #3 Movie mover
- if any condition is met
-- kind is movie
-- extension is mkv
-then
-- move to folder movies
Now how do I get rid of torrent leftovers in the downloads folder without wiping everything else?
