Using CLI with plex and hazel

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
m4hu
Posts: 10
Joined: 26 Jan 2016, 10:50

Using CLI with plex and hazel

Post 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
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Using CLI with plex and hazel

Post by rednoah »

What does the console output say when it's not working?
:idea: Please read the FAQ and How to Request Help.
m4hu
Posts: 10
Joined: 26 Jan 2016, 10:50

Re: Using CLI with plex and hazel

Post 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
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Using CLI with plex and hazel

Post 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
:idea: Please read the FAQ and How to Request Help.
m4hu
Posts: 10
Joined: 26 Jan 2016, 10:50

Re: Using CLI with plex and hazel

Post 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
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Using CLI with plex and hazel

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply