Filebot MyJdownloader AMC Plex Script
Posted: 22 Oct 2019, 09:23
Dear community could you please look at my Script and tell me if it is right?
I am not sure if i do to much. For example do i have split SERIEN, FILME and move them separately or will the amc do this for me automatically?
It would be nice if you could help me to improve my script.
I am not sure if i do to much. For example do i have split SERIEN, FILME and move them separately or will the amc do this for me automatically?
It would be nice if you could help me to improve my script.
Code: Select all
#!/bin/sh
export JAVA_OPTS="-Xmx512M"
##FileBot benätigt diese Variablen
LOG="/volume1/Mediathek/Logs/amc.log"
EXC="/volume1/Mediathek/Logs/amc.txt"
FILME="/volume1/Mediathek/{plex}"
SERIEN="/volume1/Mediathek/{plex}"
### Wenn Filebot mal etwas nicht zuordnen kann, dann kannst du es in einen seperaten Ordner verschieben lassen, dann bleibt es im Downloadordner Übersichtlich.
UNSORTIERT="/volume1/Mediathek/Downloads/Unsortiert/{file.structurePathTail}"
##FileBot ausführen
/var/packages/filebot/target/filebot.sh -script fn:amc --def skipExtract=y --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" "unsortedFormat=$UNSORTIERT" -non-strict --def unsorted=y --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