Page 1 of 1

Using CLI with plex and hazel

Posted: 24 Apr 2017, 13:42
by m4hu
Hi i'm trying to setup hazel so its automatically renames my tv shows and movie. movie setup up was quite easy but i got problems with tv shows. can someone point out my failure?
http://imgur.com/a/KeIjT

Re: Using CLI with plex and hazel

Posted: 24 Apr 2017, 13:50
by rednoah
What does the console output say when it's not working?

Re: Using CLI with plex and hazel

Posted: 24 Apr 2017, 14:01
by m4hu
Hazel:
2017-04-24 15:47:06.233 hazelworker[6996] Processing folder Entpackt
2017-04-24 15:47:08.355 hazelworker[6996] Silicon Valley S04 720p HDTV x264-AVS: Rule Serien mkv matched.
2017-04-24 15:47:09.471 hazelworker[6996]

Error: Select all

 Shell script failed: Error processing shell script on file /Users/NERV/Downloads/Entpackt/Silicon Valley S04 720p HDTV x264-AVS.
2017-04-24 15:47:09.472 hazelworker[6996] Shellscript exited with non-successful status code: 1
2017-04-24 15:47:09.522 hazelworker[6996] Done processing folder Entpackt

havent setup filebot cli log yet

Re: Using CLI with plex and hazel

Posted: 24 Apr 2017, 14:08
by rednoah
Unfortunately, that tells us nothing about the console output of the bash script that hazel is calling. Every command has console output. FileBot logging is not the same as console output because you won't get FileBot logging if FileBot isn't called.

Have you tried opening Terminal and calling filebot yourself on a few files? You can't automate what you can't do manually. ;)

Please read this: viewtopic.php?f=4&t=3067

Re: Using CLI with plex and hazel

Posted: 24 Apr 2017, 14:29
by m4hu
okay something was off with the cli version of filebot and my MAS app.
when i tried to open a filebot function in terminal it would open an older version and prompt me to update. i reinstalled it with cask reinstall
another question off topic to this: is it possible to change some parts for the {plex} function? i want to rename the "tv shows" folder name

Re: Using CLI with plex and hazel

Posted: 24 Apr 2017, 14:37
by rednoah
No, you can't change how {plex} works. But you can use the File value that {plex} gives you and then use bits and pieces.

From the docs:

Code: Select all

/path/to/My TV Folder/{plex.tail}
@see viewtopic.php?f=5&t=4116