Filebot Node & JDownloader
Posted: 21 Oct 2023, 13:02
Hi folks,
is there any best practice for triggering Filebot Node via http call, when JDownloader has finished extracting a package.
I'm using JDownloader and Filebot Node via docker-compose.
In JDownloader I've configured the event scripter, when extracting has been finished:
jdownloader-postprocess.sh:
Filebot 0.args:
If I'm downloadig multiple files, JDownloaders calls Filebot after every single finished extraction. The Problem is, that if one packages has been extracted and another is still in extraction progress, Filebot also processes the not finished package. In this case the FIlebot moves an uncpleted media files.
Any ideas to improve?
is there any best practice for triggering Filebot Node via http call, when JDownloader has finished extracting a package.
I'm using JDownloader and Filebot Node via docker-compose.
In JDownloader I've configured the event scripter, when extracting has been finished:
Code: Select all
var amcFile = "/config/jdownloader-postprocess.sh";var path = archive.getFolder(); callAsync(function() {}, amcFile, path);
Code: Select all
#!/bin/sh -xu
wget "http://192.168.242.41:5452/task?id=0"
Code: Select all
-script
fn:amc
/input
--output
/output
--action
move
-non-strict
--order
Airdate
--conflict
auto
--lang
de
--def
unsorted=y
artwork=n
reportError=y
excludeLink=y
clean=y
skipExtract=y
storeReport=/data/filebot/node/log/mediaReport.log
seriesFormat=Series/{n.colon(' - ')} [imdb-{imdbid}]/S{s00}/{n.colon(' - ')} [imdb-{imdbid}] - {s00e00} - {any{localize[fn.match(/German/)].t}{t}}
movieFormat=Movies/{n.colon(' - ')} [{y}, {director}, imdb-{imdbid}]{' part'+pi}
animeFormat=Series/{n.colon(' - ')} [imdb-{imdbid}]/{n.colon(' - ')} [imdb-{imdbid}] - {absolute.pad(4)} - {s00e00} - {any{localize[fn.match(/German/)].t}{t}}
movieDB=TheMovieDB
seriesDB=TheTVDB
animeDB=AniDB
--apply
refresh
--log
all
--log-file
/data/node/filebot.log
Any ideas to improve?