Page 1 of 1

Filebot.sh with SSH

Posted: 30 Mar 2020, 18:44
by GreenLantern81
I feel stupid....

Ive tried to read guides and other peoples question but i dont get it!

I have an folder on my seedbox (No Root). In that folder i have movies that i want to process in filebot. I use filebot on windows and run the movies manually every day. I would like to make this like an cron job on my seedbox instead.
The command i use in the GUI is:

Code: Select all

move/movies/{n[0]}/{n.sortName('$2, $1')} ({y})/{fn}

HOW do i use this on my seedbox. I use SSH and understand that i must use

Code: Select all

./filebot.sh
But how do i use my GUI commands? Do i create a script file like script.groovy and place it in my Filebot folder?
I thought it should be something like this to run the cript:

Code: Select all

./filebot.sh -script /home/USER/filebot-portable/script.groovy --output "/home/USER/files/Downloaded/move/movies/" --action move --conflict skip -non-strict -trust-script
But that didnt work, please someone guide or help me in the right direction!

Re: Filebot.sh with SSH

Posted: 30 Mar 2020, 18:59
by rednoah
I'd start with the filebot command-line tool manual:
https://www.filebot.net/cli.html

Re: Filebot.sh with SSH

Posted: 30 Mar 2020, 20:00
by GreenLantern81
Thanks! I will check it out!

Re: Filebot.sh with SSH

Posted: 31 Mar 2020, 06:16
by GreenLantern81
I got it! The only thing i cant get right is processing subfolders.
Can someone please help me!

Im using this:

Code: Select all

./filebot.sh -rename --format "{n[0]}/{n.sortName('$2, $1')} ({y})/{fn}" /home/dennis800121/files/Downloaded/move/movies/

Re: Filebot.sh with SSH

Posted: 31 Mar 2020, 06:38
by rednoah

Code: Select all

$ filebot -help
...
-r                                     : Recursively process folders

Re: Filebot.sh with SSH

Posted: 31 Mar 2020, 06:51
by GreenLantern81
Thank you so much! This tool is amazing!

Re: Filebot.sh with SSH

Posted: 31 Mar 2020, 07:01
by rednoah
GreenLantern81 wrote: 31 Mar 2020, 06:51 Thank you so much! This tool is amazing!
You've barely started to scratch the surface~ :lol: