Page 1 of 1

Invalid usage: The --output folder option is required

Posted: 29 May 2021, 17:47
by kannebecker
Hello,

my filebot on synology is not running properly since today, it does not move the files anymore :(

Attached my script + log

Someone has an idea ?

Filebot.sh

Code: Select all

#!/bin/sh
#Javapfad
#PATH=$PATH: /var/packages/Java8/target/j2sdk-image/bin/

#Pfade
QUELLE=/volume1/Downloads/Unsortiert
ZIEL=/volume1/
SERIEN="/volume1/Serien"
FILME="/volume1/Filme"

#Filebot
FILEBOT=/volume1/@appstore/filebot/filebot.sh
SPRACHE=de
IGNORE=.nfo,.txt,.url,.rar,.jpg,.iso,.sub,.idx,.mp3
CLEAN=y
LOG=/volume1/Downloads/filebot.log

#Formate
SERIE="{n} - {S00E00} - {t}"
FILM="{n} ({y})"

###################################################################################

#Filebot-Kommando
$FILEBOT -script fn:amc -rename --conflict skip --def minLengthMS=0 --action move -no-xattr -non-strict --lang de "$QUELLE" --log-file $LOG --def ignore=$IGNORE "seriesFormat=$SERIEN/$SERIE" "movieFormat=$FILME/$FILM" clean=$CLEAN
exit 0
Filebot Log:

Code: Select all

* Consider using --apply refresh to refresh file services and media library
Run script [fn:amc] at [Sat May 29 19:42:48 CEST 2021]
Parameter: minLengthMS = 0
Parameter: ignore = .nfo,.txt,.url,.rar,.jpg,.iso,.sub,.idx,.mp3
Parameter: seriesFormat = /volume1/Serien/{n} - {S00E00} - {t}
Parameter: movieFormat = /volume1/Filme/{n} ({y})
Parameter: clean = y
Argument[0]: /volume1/Downloads/Unsortiert
Invalid usage: The --output folder option is required
Invalid usage: output folder must exist and must be a directory: null
Abort (×_×)

Re: Filebot is not moving my Files

Posted: 29 May 2021, 18:05
by rednoah

Code: Select all

Invalid usage: The --output folder option is required
Invalid usage: output folder must exist and must be a directory: null
Have you tried specifying the --output option like in the amc script examples?

Re: Filebot is not moving my Files

Posted: 29 May 2021, 18:08
by kannebecker
I do not know what you mean, am not so technically fit :)
it ran now years and now no more.

can you explain to me in more detail what I have to do ?

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

Posted: 29 May 2021, 18:28
by rednoah
1.
Just add --output /volume1/Filme to your command. Any valid output folder is fine. You just need to set one explicitly nowadays. Unknowingly defaulting to $PWD can lead to unexpected undesirable behaviors.


2.
Also, your --def ignore option is wrong and probably does not do what it is intended to do:

Code: Select all

--def ignore=.nfo,.txt,.url,.rar,.jpg,.iso,.sub,.idx,.mp3
--def ignore expects a regular expression pattern, thus you would ignore these types of files with a pattern such as this:

Code: Select all

--def ignore='[.](nfo|txt|url|rar|jpg|iso|sub|idx|mp3)$'

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

Posted: 29 May 2021, 18:49
by kannebecker
like this ->

Code: Select all

#!/bin/sh
#Javapfad
#PATH=$PATH: /var/packages/Java8/target/j2sdk-image/bin/

#Pfade
QUELLE=/volume1/Downloads/Unsortiert
ZIEL=/volume1/
SERIEN="/volume1/Serien"
FILME="/volume1/Filme"

#Filebot
FILEBOT=/volume1/@appstore/filebot/filebot.sh
SPRACHE=de
IGNORE=.nfo,.txt,.url,.rar,.jpg,.iso,.sub,.idx,.mp3
#IGNORE='[.](nfo|txt|url|rar|jpg|iso|sub|idx|mp3)$'
CLEAN=y
LOG=/volume1/Downloads/filebot.log

#Formate
SERIE="{n} - {S00E00} - {t}"
FILM="{n} ({y})"

###################################################################################

#Filebot-Kommando
#$FILEBOT -script fn:amc -rename --conflict skip --def minLengthMS=0 --action move -no-xattr -non-strict --lang de "$QUELLE" --log-file $LOG --def ignore=$IGNORE "seriesFormat=$SERIEN/$SERIE" "movieFormat=$FILME/$FILM" clean=$CLEAN
$FILEBOT -script fn:amc -rename --conflict skip --def minLengthMS=0 --action move -no-xattr -non-strict --lang de "$QUELLE" --log-file $LOG --output /volume1/Filme --def ignore=$IGNORE "seriesFormat=$SERIEN/$SERIE" "movieFormat=$FILME/$FILM" clean=$CLEAN


exit 0

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

Posted: 29 May 2021, 18:54
by kannebecker
i think it works :)

Thank you!