im very happy with filebot so far, works really good. But i have one issue. Sometimes when i Download something thats not a movie or tv shoe, desired files are getting deleted. This can be for example an installation manual or keygens etc.
In the filebot log i cant find anything relating to this problem... heres my script:
Code: Select all
#!/bin/sh
LOG="/volume1/video/Serien/amc.log"
EXC="/volume1/video/Serien/amc.txt"
SERIEN="/volume1/video/Serien/{n}/{s}/{n} - {s00e00} - {t} ({y}) {vf}@{channels}"
SERIENOUT="/volume1/video/Serien/{n}/{s}/{n}/"
FILME="/volume1/video/Filme/{n} ({y}) {source}({vf}@{vc}) ({channels}@{ac}) [{rating}]/{n} ({y}) {source}({vf}@{vc}) ({channels}@{ac}) [{rating}]"
UNSORTIERT="/volume1/video/Downloads/videos/unsortiert - {file.structurePathTail}"
##FileBot ausführen
/var/packages/filebot/target/filebot.sh -script fn:amc --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" "animeFormat=$ANIME" "unsortedFormat=$UNSORTIERT" "artwork=y" -non-strict --def unsorted=y --def skipExtract=y --conflict skip --def clean=y
## Aufräumen, --def root löscht den Unterordner mit
/var/packages/filebot/target/filebot.sh -script fn:cleaner "$1" --def root=y
/volume1/video/sorttitle.sh
Edit: I just made a test to verify its caused by filebot.
I downloaded a package containing a .txt file, two .exe files and no video. When filebot is being run after the download was finished, it deletes the txt file. After i renamed my filebot.sh file, filebot couldnt be started anymore and the file will be kept untouched.
I set --def clean=n, but still it deletes the file. Do i have to turn --def root=y to --def root=n? Or what else is causing this behaviour?
Edit 2: even if i set both, --def clean=n and --def root=n it still deletes the file. This also happens with various files in bigger packages, and i cant tell which files exactly are getting deleted.
This is what the log says:
Code: Select all
Run script [fn:amc] at [Wed Apr 19 16:25:14 CEST 2017]
Parameter: seriesFormat = /volume1/video/Serien/{n}/{s}/{n} - {s00e00} - {t} ({y}) {vf}@{channels}
Parameter: movieFormat = /volume1/video/Filme/{n} ({y}) {source}({vf}@{vc}) ({channels}@{ac}) [{rating}]/{n} ({y}) {source}({vf}@{vc}) ({channels}@{ac}) [{rating}]
Parameter: animeFormat =
Parameter: unsortedFormat = /volume1/video/Downloads/videos/unsortiert - {file.structurePathTail}
Parameter: artwork = y
Parameter: unsorted = y
Parameter: skipExtract = y
Parameter: clean = n
Argument[0]: /volume1/video/Downloads/videos/03675
No files selected for processing
Done ヾ(@⌒ー⌒@)ノ