General Questions about automation

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Pukinator
Posts: 4
Joined: 23 Aug 2016, 18:43

General Questions about automation

Post by Pukinator »

I want to change from Couchpotato just to Filebot and download manually. What is the best way to automate this? Just run the script every 5 min with cron or can it detect when something is added to a folder? And how would my script look like with this format: /media/Filme/{n} ({y})/{n} ({y}) - ({vf}.{source}.{af}){'.'+lang}? Or would be groover better for this task and what is groover?
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: General Questions about automation

Post by rednoah »

1.
You'd probably want to use the amc script and call it whenever new files are added, or in intervals, depending on what tools are available to you.

e.g.
viewtopic.php?f=4&t=3908


2.
The amc script allows you to pass in custom formats via cmdline options.


3.
What is a "groover" indeed... IDK... you don't need one though.
:idea: Please read the FAQ and How to Request Help.
Pukinator
Posts: 4
Joined: 23 Aug 2016, 18:43

Re: General Questions about automation

Post by Pukinator »

1. Is this only for Mac? I use debian on my server

3.Sorry I meant the groovy programming language
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: General Questions about automation

Post by rednoah »

1.
Automator is for Mac but I'm sure there's similar tools for Windows and your favourite flavour of Linux.

e.g.
http://unix.stackexchange.com/questions ... -new-files

Feel free to make a tutorial once you figure out how to do it with inotify. ;)


3.
You don't need to write any Groovy code. Bash and Google skills will be helpful though. ;)
:idea: Please read the FAQ and How to Request Help.
Pukinator
Posts: 4
Joined: 23 Aug 2016, 18:43

Re: General Questions about automation

Post by Pukinator »

My script is filebot -script fn:amc --action move -non-strict "/media/downloads" --log-file amc.log --def excludeList=amc.txt --def plex=host:PLEXTOKEN --def clean=y --def movieFormat="/media/Filme/{n} ({y})/{n} ({y}) - ({vf}.{source}.{af}){'.'+lang}" seriesFormat="/media/Serien/{n}/{'Staffel' +s}/{n} {s00e00} - ({vf}.{source}.{af}){'.'+lang}" --conflict auto

But inotifywait doesn't work for me unfortunately because I mount my media over NFS and inotifywait doesn't work with NFS. I guess I'll have to set up a crontab which runs every 10 mins or so.
I now use my synology to run the script every 15 mins
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: General Questions about automation

Post by rednoah »

You didn't specify --output which is required (or it'll default to the current working directory).

I'd explicitly specify it:

Code: Select all

--output "/media" --def movieFormat="Filme/{n} ({y})/{n} ({y}) - ({vf}.{source}.{af}){'.'+lang}" seriesFormat="/media/Serien/{n}/{'Staffel' +s}/{n} {s00e00} - ({vf}.{source}.{af}){'.'+lang}"
:idea: Please read the FAQ and How to Request Help.
Post Reply