install_dep_packages="oracle-java"
#!/bin/sh
#Javapfad
PATH=$PATH:/usr/local/java/bin/java
#Pfade
QUELLE=/volume1/Downloads
ZIEL=/volume1/video
SERIEN="/volume1/video/TV Shows"
FILME="/volume1/video/Movies"
#Filebot
FILEBOT=/usr/local/bin/filebot
KONFLIKT=skip
AKTION=move
SPRACHE=de
IGNORE=.nfo,.txt,.url,.rar,.jpg,.iso
CLEAN=y
LOG=/volume1/homes/Miguel/filebot/Logs/filebot.log
#Formate
SERIE="{n}/{'Season '+s}/{n} - {episode.special ? 'S00E'+special.pad(2) : 'S'+s.pad(2)+'E'+es*.pad(2).join('-E')} - {t}/{n} - {episode.special ? 'S00E'+special.pad(2) : 'S'+s.pad(2)+'E'+es*.pad(2).join('-E')} - {t}"
FILM="{n} {[y, certification, rating]}/{n} [{y}, {director}] {vf}"
#Plex
PLEX=localhost
#User/Gruppe
USER=Miguel
GROUP=users
################################################## #################################
#Filebot-Kommando
$FILEBOT -script fn:amc --conflict $KONFLIKT --action $AKTION -no-xattr -non-strict --lang $SPRACHE "$QUELLE" --log-file $LOG --def ignore=$IGNORE "seriesFormat=$SERIEN/$SERIE" "movieFormat=$FILME/$FILM" clean=$CLEAN plex=$PLEX
#Berechtigungen setzen
chown -R $USER:$GROUP $ZIEL
find $ZIEL -type d -exec chmod 755 {} \;
find $ZIEL -type f -exec chmod 644 {} \;
exit 0
PATH=$PATH:/var/packages/Java8/target/j2sdk-image/bin # Synology Java runtime enviroment
PATH=$PATH:/var/packages/Java8/target/j2sdk-image/jre/bin # Synology Java runtime enviroment
JAVA_HOME=/var/packages/Java8/target/j2sdk-image/jre # Synology Java runtime enviroment
CLASSPATH=.:/var/packages/Java8/target/j2sdk-image/jre/lib # Synology Java runtime enviroment
LANG=en_US.utf8 # Synology Java runtime enviroment
export CLASSPATH PATH JAVA_HOME LANG # Synology Java runtime enviroment
export JAVA_HOME=/usr/local/java # added by Unofficial Java Installer
export LANG=en_US.utf8 # added by Unofficial Java Installer
#!/bin/sh
#Javapfad
PATH=$PATH:/var/packages/Java8/target/j2sdk-image/jre/bin
#Pfade
QUELLE=/volume1/downloads
ZIEL=/volume1/video
SERIEN="/volume1/video/Serien"
FILME="/volume1/video/Filme"
#Filebot
FILEBOT=/usr/local/bin/filebot
KONFLIKT=skip
AKTION=move
SPRACHE=de
IGNORE='[.](nfo|txt|url|rar|jpg|iso|idx|sub)$'
LOG=/volume1/data/Logs/filebot.log
#Formate
SERIE="{n}/Staffel{s.pad(2)}/{n}.{s00e00}.{t}"
FILM="{n} ({y})/{n} ({y})"
#Plex
PLEX=127.0.0.1:
#User/Gruppe
USER=Daniel
GROUP=users
##############################################################################################################################################################################################################################################
#Filebot-Kommando
$FILEBOT -script fn:amc --conflict $KONFLIKT --action $AKTION -no-xattr -non-strict --lang $SPRACHE "$QUELLE" --def ignore=$IGNORE "seriesFormat=$SERIEN/$SERIE" "movieFormat=$FILME/$FILM" plex=$PLEX --log-file $LOG
#Aufräumen
find $QUELLE -mindepth 1 ! -name '*.mkv' ! -name '*.avi' ! -name '*.mp4' -delete
#Berechtigungen setzen
chown -R $USER:$GROUP $ZIEL
find $ZIEL -type d -exec chmod 775 {} \;
find $ZIEL -type f -exec chmod 664 {} \;
exit 0
filebot -script 'fn:amc' /volume1/Download --output '/volume1/video/Folder1' --action move -non-strict --lang de --def 'ut_label=movie' 'music=y' 'unsorted=y' 'artwork=y' 'skipExtract=y' 'deleteAfterExtract=y' 'movieFormat={file.parentFile.name}/{n} ({y})' --log WARNING --log-file '/volume1/Download/FileBotMovie.log'
lösen kann, leider habe ich keine ahnung wo/wie ich es in meine commandline rein bringen muss... ich habe daraus:{dim[1] >= 2160 ? 'UHD' : 'HD'}/{plex}
gemacht, leider funktioniert das verschieben dann total falschfilebot -script 'fn:amc' /volume1/Download --output '/volume1/video/Folder1' --action move -non-strict --lang de --def 'ut_label=movie' 'music=y' 'unsorted=y' 'artwork=y' 'skipExtract=y' 'deleteAfterExtract=y' 'movieFormat={dim[1] >= 2160 ? 'Folder1/Folder2' : 'Folder1'}/{file.parentFile.name}/{n} ({y})' --log WARNING --log-file '/volume1/Download/FileBotMovie.log'
filebot -script 'fn:amc' /volume1/downloads/input --output /volume1/downloads/output --action move -non-strict --conflict auto --lang de --def 'ut_label=tv' 'music=y' 'unsorted=y' 'subtitles=deu' 'deleteAfterExtract=y' 'excludeList=.excludes' --log all --log-file '/volume1/@appstore/filebot-node/data/filebot.log'
------------------------------------------
Locking /volume1/@appstore/filebot-node/data/filebot.log
Illegal Argument: java.nio.file.AccessDeniedException: /volume1/downloads/input (/volume1/downloads/input)
Run script [fn:amc] at [Mon Mar 27 11:53:41 CEST 2017]
Parameter: ut_label = tv
Parameter: music = y
Parameter: unsorted = y
Parameter: subtitles = deu
Parameter: deleteAfterExtract = y
Parameter: excludeList = .excludes
Argument[0]: File does not exist: /volume1/downloads/input
Illegal usage: output folder must exist and must be a directory: /volume1/downloads/output
Failure (°_°)
------------------------------------------
[Process error]
filebot -rename /volume1/downloads/input
Rename episodes using [TheTVDB]
Auto-detected query: [Billions]
Fetching episode data for [Billions]
[MOVE] From [/volume1/downloads/input/Billions.S02E05.mkv] to [/volume1/downloads/input/Billions - 2x05 - Currency.mkv]
Processed 1 files
Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.
Als Dankeschön schalten wir deinen Account werbefrei.