My Perfect Process:Movie+TV D/L, Convert, UnRar, Rename, Tag

From your noodle to other noodles. Talk about ways to get the most from Hazel. Even exchange recipes for the cool rules you've thought up.

Moderators: Mr_Noodle, Moderators

Re: My Perfect Process:Movie+TV D/L, Convert, UnRar, Rename,

Postby Maxxodd1 » Thu May 31, 2012 5:23 pm

Mr_Noodle wrote:Did you supply the full path to the tvrenamer program?


Yes, my error is the exact same as jmueller a couple of posts up. My input is the full file path to the script as well as the config file. I just can't understand why it runs fine from terminal, but errors out from hazel?
Maxxodd1
 
Posts: 2
Joined: Wed May 30, 2012 9:45 pm

Re: My Perfect Process:Movie+TV D/L, Convert, UnRar, Rename,

Postby Mr_Noodle » Fri Jun 01, 2012 2:56 pm

They are running in different environments. In general, with shellscripts, it's very bad to assume you are running in your particular interactive shell environment. You should be using full paths as a regular practice. Hazel runs in a non-interactive shell so it doesn't have access to all the stuff that's set in your rc/profile/whatever files that are executed when you log into a shell with Terminal.
Mr_Noodle
Site Admin
 
Posts: 2919
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: My Perfect Process:Movie+TV D/L, Convert, UnRar, Rename,

Postby esweeney » Fri Sep 28, 2012 5:53 pm

Very nice! I am a relatively new Mac and have fumbled though implementing this process. I am tweaking each step as I go along and have run into and issue that I am sure has a simple solution that is alluding me. The issue is with the step where we encode the video file. I am using hazel and running the Batch Rip Batch Encode workflow. If the file is .avi it runs fine and I get my m4v out. If the file is mkv, I get multiple files out. If I right-click the same mkv file and choose that same service Batch Rip Batch Encode, it only outputs one file.

In the Batch Rip Batch Encode workflow, I only have the first encode box checked, the rest are greyed out and I have nothing in the custom fields. Any ideas?
esweeney
 
Posts: 1
Joined: Fri Sep 28, 2012 5:22 pm

Re: My Perfect Process:Movie+TV D/L, Convert, UnRar, Rename,

Postby dhy8386 » Mon Oct 01, 2012 5:32 pm

Been away for awhile. Getting around to updating to Hazel 3 this weekend. Then I need to update this post in the OP. Biggest change is that newest Safari doesnt support RSS feeds. I have worked around this somewhat but need to find a good solution for everyone.
dhy8386
 
Posts: 56
Joined: Tue Nov 09, 2010 12:19 pm

Re: My Perfect Process:Movie+TV D/L, Convert, UnRar, Rename,

Postby jungybrand » Thu Nov 29, 2012 4:51 am

I don't know if this will help anyone, but I ran into the same error of being able to make this work in terminal directly but seeing a failure when running through Hazel. I am not a programmer but these instructions were really detailed from the OP so I thought I'd give this all a go. Many thanks to him for taking the time to put this together in a way that even a newbie can follow.

My config.json file lives on an external hard drive named Central Media. This is also where I keep all of my episode files. I noticed that when I dragged the .json file into terminal it created the path as
/Volumes/Central\ Media/mytvnamerconfig.js
rather than what I expected to be
/Volumes/Central Media/mytvnamerconfig.json

When I first set up my Hazel rule and modified the OP embedded script, I entered it as

/usr/local/bin/tvnamer --config=/Volumes/Central Media/mytvnamerconfig.json and this failed. After comparing the embedded script in Hazel to the terminal lines, I changed my rule to read

/usr/local/bin/tvnamer --config=/Volumes/Central\ Media/mytvnamerconfig.json and the episodes moved perfectly!

I guess that the space in the name of the Volume doesn't work well. If you are seeing the terminal work properly but the Hazel script failing, do you have a space in the volume name or somewhere in the path?
jungybrand
 
Posts: 1
Joined: Thu Nov 29, 2012 3:22 am

Previous

Return to Tips & Tricks/Rule Recipe Exchange

Who is online

Users browsing this forum: No registered users and 1 guest



Copyright © 2006-2012 Noodlesoft, LLC, All Rights Reserved. Mac and the Mac logo are trademarks of Apple Computer, Inc., registered in the U.S. and other countries.