After one year of avoiding using Hazel (I did purchase it but never played around with it), I finally made the step and started to bring some automatization in my system.
First of all I would like to thank Mister Noodle for this amazing piece of software (where have you been all my life?).
But as in all things when trying and testing I have hit some walls to continue my workflow.
I'll explain my setup very brief and simple share some of my rules and post the questions where I would need some help.
First of all: My setup
Let me start with the fact that I don't rename files, I don't like it, it's a personal thing, does it make my config much more confusing, probably it will.
So here we go:
Step 1, creating the downloads folder
For my download folder I just use ./downloads/movies ./downloads/tv
Step 2a, extracting the files - TV
For extracting the files I don't use NoodleSoft build in unarchiver, I use a script named Unrarall https://github.com/arfoll/unrarall. It is very easy to use and it allows to get rid of your rar files, and all the extra stuff that comes with downloaded files, there are solutions in the help section if you can't get it up and running.
How does the rule look like?
If all of the following conditions are met
Kind is Folder
Run rules on folder contents
Run shell script -> embedded script
- Code: Select all
cd /users/username/download_folder
./unrarall --clean=all --output ~/Downloads_folder/sorted_folder/TV ~/Downloads_folder/sorted_folder/TV
Step 3a, sorting - TV
Since I don't rename my files I have a very hectic setup.
Let's say we have a folder Noodle.Soft.S01E01.720p.HDTV.X264-HAZEL
After extracting the file will be moved from ~/Downloads_folder/sorted_folder/TV/Noodle.Soft.S01E01.720p.HDTV.X264-HAZEL => ~/Downloads_folder/sorted_folder/TV/Noodle.Soft.S01E01.720p.HDTV.X264-HAZEL.mkv
Now the moving part
I call this rule Move TV Shows 2 Title (Noodle.Soft)
My rule is
If all of the following conditions are met
If any of the following conditions are met for "the current file or folder"
kind is Matroska Video File
Kind is subtitles file
Name matches • Showname.• Showname part 2.S• Season 1E• Episode.• Quality.• Source.• Codec-• Groupname
breakdown: showname => custom text / Anything ... Showname part 2 => custom text / Anything Season => custom text / number Episode => custom text / number Quality => custom text / letters & digits Source => custom text / word Codec => custom text / Letters & Digits Groupname => custom text / word (any information here could be helpful if word could be replaced with anything (in case group name with letters & digits would appear) (please provide feedback).
The bold underlined . are important, cause that's what people most of the time overlook, Hazel scans part by part and if one of these parameters is missing your file won't be moved.
Next part of the rule
Move to folder => here is your moving dir
Sort into subfolder with pattern • Showname.• Showname part 2 ▸s• Season 1 (based on the parameters above)
Step 2b, Extracting the files - MOVIES
This rule is almost identical as the TV rules but I extract my movies in the same folders as the dir
Run rules on folder contents
Run shell script -> embedded script
- Code: Select all
cd /users/username/download_folder
./unrarall --clean=all new
Step 3b, sorting - MOVIES
Let's say we have a folder Noodle.Soft.S01E01.720p.HDTV.X264-HAZEL
After extracting the file will be moved from ~/Downloads_folder/sorted_folder/MOVIES/Noodle.Soft.2015.720p.BluRay.X264-HAZEL => ~/Downloads_folder/sorted_folder/MOVIES/Noodle.Soft.2015.720p.BluRay.X264-HAZEL/Noodle.Soft.2015.720p.BluRay.X264-HAZEL.mkv
So as you can see the MOVIE starts with N
My setup on my storage unite is in folders 0-9 -> A B C ....... Z
So how do I move them to the specific folder
My rule:
If all of the following conditions are met
If any of the following conditions are met for the current file or folder
Kind is Matroska Video File
Kind is Subtitles File
Name Matches N• MovieTitle
MovieTitle => ... (anything)
Move To Folder Movies
Sort Into subfolder with pattern N▸
OK, BUT
Where is the problem here:
First of all:
In this rule only the file gets moved, now my question is How can I make Hazel create/move the folder on the destination folder (only for the movie part necessary, it will create on the destination folder N/Noodle.Soft.2015.720p.BluRay.X264-HAZEL.mkv and not, like I want N/Noodle.Soft.2015.720p.BluRay.X264-HAZEL/Noodle.Soft.2015.720p.BluRay.X264-HAZEL.mkv
Second of all:
Since I extract my TV files in the enclosing folder I would like to know how I can remove the made DIRS (is there any easy script for that?) (My unrarall script only removes most of the file but not dirs)
Cause now with these rules I will always have ~/Downloads_folder/sorted_folder/TV/Noodle.Soft.S01E01.720p.HDTV.X264-HAZEL/Noodle.Soft.S01E01.720p.HDTV.X264-HAZEL.nfo and that's kinda annoying.
Third of all:
is it possible to put a crontab on hazel so it would only run when there is activity in the ~/Downloads_folder/sorted_folder/
Fourth of all:
How can I apply the same movie rule for movies starting with a DIGIT
So there you go, I hope this made sence to all the Hazel users out there and hope I could get some answers on my questions