Invalid usage: The --output folder option is required

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
eggsplorer
Posts: 12
Joined: 21 Jun 2019, 23:05

Invalid usage: The --output folder option is required

Post by eggsplorer »

I have always been calling filebot via ssh:

Code: Select all

sh /opt/jd2/filebot.sh /srv/dev-disk-by-label-Medien/Downloads/complete
This is my amc script:

Code: Select all

#!/bin/sh
## FileBot benötigt diese Variablen
LOG="/srv/dev-disk-by-label-Medien/Downloads/filebot/amc.log"
EXC="/srv/dev-disk-by-label-Medien/Downloads/filebot/amc.txt"
SERIEN="{genres.contains('Documentary') ? '/srv/dev-disk-by-label-Medien/Medien/Dokumentationen' : '/srv/dev-disk-by-label-Serien/Serien'}/{n}/Staffel {s}/{n} - {s00e00} - {t}"
FILME="/srv/dev-disk-by-label-Medien/Medien/{vf =~ /2160p/ ? 'Filme/2. 4K' : 'Filme'}/{n} ({y})/{n} ({y}) [{rating}]"
## FileBot ausführen
/usr/share/filebot/bin/filebot.sh -script fn:amc --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" --def "exec=chmod -R 775 '{folder}/' ; chown -R 1000:100 '{folder}/'" -non-strict --def clean=y
## Aufräumen, "--def root=y" löscht den Unterordner mit
/usr/share/filebot/bin/filebot.sh -script fn:cleaner "$1"
## /usr/share/filebot/bin/filebot.sh -script fn:sysinfo
Now I get this error:

Code: Select all

Last login: Thu May 27 23:40:18 2021 from XXX.XXX.X.XX
Run script [fn:amc] at [Fri May 28 00:26:30 CEST 2021]
Parameter: seriesFormat = {genres.contains('Documentary') ? '/srv/dev-disk-by-label-Medien/Medien/Dokumentationen' : '/srv/dev-disk-by-label-Serien/Serien'}/{n}/Staffel {s}/{n} - {s00e00} - {t}
Parameter: movieFormat = /srv/dev-disk-by-label-Medien/Medien/{vf =~ /2160p/ ? 'Filme/2. 4K' : 'Filme'}/{n} ({y})/{n} ({y}) [{rating}]
Parameter: exec = chmod -R 775 '{folder}/' ; chown -R 1000:100 '{folder}/'
Parameter: clean = y
Argument[0]: /srv/dev-disk-by-label-Medien/Downloads/complete
Bad exec value: chmod -R 775 '{folder}/' ; chown -R 1000:100 '{folder}/'
Invalid usage: The --output folder option is required
Abort (×_×)
Done ヾ(@⌒ー⌒@)ノ
Could this be the problem?

Code: Select all

--def "exec=chmod -R 775 '{folder}/' ; chown -R 1000:100 '{folder}/'"
If I recall correclty I had to add this command because I didn't have write permission on folders created by filebot.

Anything else odd with my script?
eggsplorer
Posts: 12
Joined: 21 Jun 2019, 23:05

Re: Invalid usage: The --output folder option is required

Post by eggsplorer »

Thanks, I should have used the search bar. This would have been an easy find :roll:
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Invalid usage: The --output folder option is required

Post by rednoah »

No worries. It's good to have multiple threads link to the same main thread so that we can catch lots of different Google keywords that people might use to search for this issue. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply