Code: Select all
[{"eventTrigger":"ON_ARCHIVE_EXTRACTED", "enabled":true, "name":"FileBot", "script":"var amcFile = \"/root/JDtoFilebot.sh\";var path = archive.getFolder(); callAsync(function() {}, amcFile, path);", "eventTriggerSettings":{}, "id":1470601519456}]
And this is inside JDtoFilebot.sh
Code: Select all
#!/bin/sh
##FileBot needs that:
LOG="/root/logs/amc.log"
EXCLUDE="/root/logs/amc.txt"
SERIEN="/root/Daten/uploadfolder/{plex}"
FILME="/root/Daten/uploadfolder/{plex}"
UNSORTIERT="/root/Daten/uploadfolder/unsorted/{file.structurePathTail}" ### separate folder for filebot for the case that it cannot recognize a movie / series
##execute filebot
filebot -script fn:amc --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" "unsortedFormat=$UNSORTIERT" -non-strict --def unsorted=y --def skipExtract=y --def minFileSize=104857600 --def exclud$
## clean everything
filebot -script fn:cleaner "$1" --def root=y "exts=jpg|nfo|rar|nfo|htm|html|url|txt|etc" "terms=sample|trailer|etc"
jDownload unpack it, and trigger the Eventscript but then i just get a error in amc.log
Code: Select all
Illegal Argument: java.nio.file.NoSuchFileException: /root/Downloads/DL/Die Simpsons S27 GERMAN DUBBED DL 1080p WebHD x264 - TVP (/root/Downloads/DL/Die Simpsons S27 GERMAN DUBBED DL 1080p WebHD x264 - TVP)
Illegal Argument: java.nio.file.NoSuchFileException: /root/jDownloader/exclud$ (exclud$)
Run script [fn:amc] at [Thu Mar 23 00:26:34 CET 2017]
Parameter: seriesFormat = /root/Daten/Daten/{plex}
Parameter: movieFormat = /root/Daten/Daten/{plex}
Parameter: unsortedFormat = /root/Daten/unsorted/{file.structurePathTail}
Parameter: unsorted = y
Parameter: skipExtract = y
Parameter: minFileSize = 104857600
Argument[0]: File does not exist: /root/Downloads/DL/Die Simpsons S27 GERMAN DUBBED DL 1080p WebHD x264 - TVP
Argument[1]: File does not exist: exclud$
No files selected for processing
Done ^ ( ^ ^ ^ ^ ^ ) ^ ^
Illegal Argument: java.nio.file.NoSuchFileException: /root/Downloads/DL/schuft-rogue 51 108 (/root/Downloads/DL/schuft-rogue 51 108)
Illegal Argument: java.nio.file.NoSuchFileException: /root/jDownloader/exclud$ (exclud$)
Run script [fn:amc] at [Thu Mar 23 00:37:39 CET 2017]
Parameter: seriesFormat = /root/Daten/Daten/{plex}
Parameter: movieFormat = /root/Daten/Daten/{plex}
Parameter: unsortedFormat = /root/Daten/unsorted/{file.structurePathTail}
Parameter: unsorted = y
Parameter: skipExtract = y
Parameter: minFileSize = 104857600
Argument[0]: File does not exist: /root/Downloads/DL/schuft-rogue 51 108
Argument[1]: File does not exist: exclud$
No files selected for processing
Done ^ ( ^ ^ ^ ^ ^ ) ^ ^
Illegal Argument: java.nio.file.NoSuchFileException: /root/jDownloader/exclud$ (exclud$)
Run script [fn:amc] at [Thu Mar 23 00:38:55 CET 2017]
Parameter: seriesFormat = /root/Daten/Daten/{plex}
Parameter: movieFormat = /root/Daten/Daten/{plex}
Parameter: unsortedFormat = /root/Daten/unsorted/{file.structurePathTail}
Parameter: unsorted = y
Parameter: skipExtract = y
Parameter: minFileSize = 104857600
Argument[0]: File does not exist: /root/Downloads/DL/nsane-wall hc 72
Argument[1]: File does not exist: exclud$
No files selected for processing
Done ^ ( ^ ^ ^ ^ ^ ) ^ ^
anyone know some help pls?