Invalid usage: The --output folder option is required

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
kannebecker
Posts: 11
Joined: 10 Jan 2017, 11:39

Invalid usage: The --output folder option is required

Post 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 (×_×)
Last edited by kannebecker on 29 May 2021, 18:18, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot is not moving my Files

Post 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?
:idea: Please read the FAQ and How to Request Help.
kannebecker
Posts: 11
Joined: 10 Jan 2017, 11:39

Re: Filebot is not moving my Files

Post 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 ?
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 »

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)$'
:idea: Please read the FAQ and How to Request Help.
kannebecker
Posts: 11
Joined: 10 Jan 2017, 11:39

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

Post 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
kannebecker
Posts: 11
Joined: 10 Jan 2017, 11:39

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

Post by kannebecker »

i think it works :)

Thank you!
Post Reply