Extracting movies from subfolders and renaming them

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Hi,

I'm having a really hard time trying to figure out this.

I have a Torrents folder, where all my downloads go, and then a subfolder there called Movies.

What I need is a rule that, first, take all the video files in that folder—or any of its subfolders—when they've finished downloading via Transmission, then move them to another folder and finally rename them, for example from Touch.of.Evil.1958.RECONSTRUCTED.WS.1080p.BluRay.X264-AMIABLE.mkv to Touch of Evil (1958).mkv.

I've been trying to deal with the subfolders thing first. I read the corresponding sticky-post, however I don't understand how it works. I need Hazel to consider just some specific files in these subfolders (in this case 'kind is video'), but that doesn't seem to be possible. It looks like I can add several actions per rule but only one condition ('kind is folder' in this case), so it's useless. So there's that first.

Second, what would be the easiest way of renaming those movie files? I've seen some threads talking about scripts and specific websites and stuff, but man is it hard for my to understand those code lines and things. Any tutorial for dummies?

Any help on this will be really appreciated.

Thanks in advance.
usernamedoesntmatter
 
Posts: 10
Joined: Tue Jun 14, 2016 3:05 pm

Can you elaborate on how you can't get the rule working? It might help if you post the rules as you have them now.

As for the rename part, search for match patterns in the help. Also search the support site as there should be links to articles on that.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Can you elaborate on how you can't get the rule working? It might help if you post the rules as you have them now.


It doesn't work because, as you said in the other post, you can't put 'kind is folder' and 'kind is video' as simultaneous conditions, for obvious reasons. So I can't think of an alternative.

What I need is to pick all the videos inside any of the subfolders.
usernamedoesntmatter
 
Posts: 10
Joined: Tue Jun 14, 2016 3:05 pm

Read the sticky post again. You don't combine the rules. If you are editing the rule in that post, then you are most likely doing it wrong. Instead, create separate rules for each type of item you are trying to process.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Read the sticky post again. You don't combine the rules. If you are editing the rule in that post, then you are most likely doing it wrong. Instead, create separate rules for each type of item you are trying to process.


Yes, I got that point since the beginning. My question is how would you accomplish what I need—what set of additional rules would you create. I can't think of a good workaround.
usernamedoesntmatter
 
Posts: 10
Joined: Tue Jun 14, 2016 3:05 pm

Basically, create a rule to process the files as if they weren't in a subfolder. Then add the subfolder rule as a separate rule. If you still cant' get it working, post your rules so I can see where things are going wrong.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Basically, create a rule to process the files as if they weren't in a subfolder. Then add the subfolder rule as a separate rule. If you still cant' get it working, post your rules so I can see where things are going wrong.


The problem is that if I create that subfolder rule, any file in any subfolder in Torrents/Movies will get moved to the main folder (which is the other rule I created), including current downloads. And definitely don't want to do that.
usernamedoesntmatter
 
Posts: 10
Joined: Tue Jun 14, 2016 3:05 pm

Is your rule set to only move video files? Can you post your rules?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Is your rule set to only move video files? Can you post your rules?


The thing is that I haven't created the other rule (I don't mean the one about subfolders). But it's because I think it's easily seeable how things will end up creating a little chaos. That's why I'm asking for help on what rules to create.

And yes, indeed, my mission is to only take the video files of a certain size in any of the subfolders and move them to the main Torrents folder.
usernamedoesntmatter
 
Posts: 10
Joined: Tue Jun 14, 2016 3:05 pm

Try things on a set of test folders/files. Also, make heavy use of the preview and status features.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Also, make heavy use of the preview and status features.


Sorry, what's that?

Also, I should notice that I'm running an old version of Hazel, though the functioning of subfolders seems to be identical and kind of limited in both cases.
usernamedoesntmatter
 
Posts: 10
Joined: Tue Jun 14, 2016 3:05 pm

What version of Hazel are you running?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:What version of Hazel are you running?


A very old one. It's 2.something—I don´t have it at hand right now. But I know it's version 2. I thought there would be no problem since the functionality, at least regarding subfolders, seems to be exactly the same (judging from your guide).

Cheers.
usernamedoesntmatter
 
Posts: 10
Joined: Tue Jun 14, 2016 3:05 pm

Yes, it should similarly for that reason but you'll have fewer diagnostic tools available to you. You'll have to rely much more on the logs in this case.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Yes, it should similarly for that reason but you'll have fewer diagnostic tools available to you. You'll have to rely much more on the logs in this case.


But I guess you understood perfectly my problem until this point. It's just a matter of seeing whether or not my goal is doable with the limited options (regarding subfolders) that Hazel seems to offer currently. I'm not quite sure I'd need to upload logs. :?

Or perhaps the problem isn't clear yet? Perhaps it's just a case where the kind of rules that you have suggested previously won't work.

Cheers and thanks for your insight.
usernamedoesntmatter
 
Posts: 10
Joined: Tue Jun 14, 2016 3:05 pm

Next

Return to Support