JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #41  
Old 03.12.2015, 23:24
CENGOiSM CENGOiSM is offline
JD Beta
 
Join Date: Jun 2015
Posts: 53
Default

Wie sieht deine FileBot Konfiguration aus? Bei mir wird mit "--lang de" alles auf deutsch benannt.
Reply With Quote
  #42  
Old 03.02.2016, 19:24
Fritz3
Guest
 
Posts: n/a
Default

Hallo Obi-wan,
ich hab gesehen du hattest auch das Problem den
Filebot unter Jdownloader richtig "aufzurufen".
Könntest du mir deine aktuellen Scripts schicken einmal
für den Eventscripter und das zweite Externe.
Wäre dir mehr als dankbar.
Reply With Quote
  #43  
Old 10.02.2016, 10:24
michldi
Guest
 
Posts: n/a
Default

Hi @all,

I’m using Entware-ng on an USB-stick with my zyxel NSA325v2 NAS.

Information about Entware-ng can be found here:
**External links are only visible to Support Staff****External links are only visible to Support Staff**

My goal is to use filebot.

I did install java 1.8.0_73 using the file ejdk-8u73-linux-arm-sflt.tar.gz.
ARMv5/ARMv6/ARMv7 Linux - SoftFP ABI, Little Endian 2
http://www.oracle.com/technetwork/ja...ads/index.html

I did install the latest jdownloader-2.

I did install the latest filebot-version: filebot_4.6.1_noarch.ipk

Java, Jdownloader and filebot are installed under /opt on my entware-ng usb-stick.
Java & Jdownloader-2 are working well.

Within jdownloader I have installed the plugin “EventScripter”. I did put the following event-script into EventScripter:
Code:
[{"eventTrigger":"ON_ARCHIVE_EXTRACTED",
"enabled":true,
"name":"FileBot",
"script":"var amcFile = "/opt/share/filebot/jdtofilebot.sh"; \n var path = archive.getFolder(); callAsync(function() {}, amcFile, path);",
"eventTriggerSettings":{}}]
The content of jdtofilebot.sh is:
Code:
#!/bin/sh
##FileBot needs these variables
LOG="/i-data/path-to-my-logfiles/Log-Files/amc.log" 
EXC="/i-data/ path-to-my-logfiles /Log-Files/amc.txt"
SERIEN="/i-data/path-to-my-series/Series/{n}/Staffel {s}/{n} S{s}E{e}"
FILME="/i-data/path-to-my-videos/Movies/{n} ({y})/{n} ({fn.contains('1080') ? '1080p ':''}{fn.contains('720') ? '720p ':''}{fn.contains('3D') || fn.contains('3-D') ? '3D ':''}HD)"
# ANIME="/i-data/md0/Anime/{n}/{n} E{absolute}"
##Run FileBot
# /ffp/filebot/filebot.sh -script fn:amc --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" "animeFormat=$ANIME" -non-strict --def clean=y --def excludeList=$EXC --def xbmc=10.0.1.5
/bin/sh /opt/share/filebot/bin/filebot.sh -script fn:amc --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" -non-strict --def clean=y --def excludeList=$EXC --def xbmc=10.0.1.5
## Clean empty folders, samples etc after processing
/bin/sh /opt/share/filebot/bin/filebot.sh -script fn:cleaner "$1" --def root=y
Amc.log and amc.txt are empty files.
jdtofilebot.sh and filebot.sh have admin-permissions and are set as executable. Jdownloader runs as admin.

The content of filebot.sh is:
Code:
#!/bin/sh
# make sure required environment variables are set
if [ -z "$USER" ]
then
    export USER=`whoami`
fi
APP_ROOT="/opt/share/filebot"
APP_DATA="$APP_ROOT/data/$USER"
# add APP_ROOT to LD_LIBRARY_PATH
if [ ! -z "$LD_LIBRARY_PATH" ]
then
	export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$APP_ROOT"
else
	export LD_LIBRARY_PATH="$APP_ROOT"
fi
# force JVM language and encoding settings
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
# FileBot settings
# EXTRACTOR="SevenZipNativeBindings"	# use the lib7-Zip-JBinding.so native library
# EXTRACTOR="SevenZipExecutable"		# use the 7z executable
EXTRACTOR="ApacheVFS"					# use Apache Commons VFS2 with junrar plugin
/opt/java/ejre1.7.0_55/bin/java $JAVA_OPTS -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dfile.encoding="UTF-8" -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=ipkg -Dnet.filebot.Archive.extractor="$EXTRACTOR" -Dnet.filebot.AcoustID.fpcalc="fpcalc" -Dapplication.dir="$APP_DATA" -Djava.io.tmpdir="$APP_DATA/temp" -Duser.home="$APP_DATA" -jar "$APP_ROOT/FileBot.jar" "$@"

When I ran that setup for the first time, Jdownloader asked me whether it should trigger the event-script above. I confirmed that. So I guess that the event trigger itself works.

However nothing happened to my extracted file/folder in my download-folder (e.g.: the downloaded file was not moved to the according series/season-folder). Amc.log and amc.txt are still empty.

I opened a shell session and tried the following commands:

~ # /opt/java/ejdk1.8.0_73/linux_arm_sflt/jre/bin/java -version
java version "1.8.0_73"
Java(TM) SE Embedded Runtime Environment (build 1.8.0_73-b02, headless)
Java HotSpot(TM) Embedded Client VM (build 25.73-b02, mixed mode)

~ # /opt/java/ejdk1.8.0_73/linux_arm_sflt/jre/bin/java /opt/share/filebot/FileBot.jar
Error: Could not find or load main class .opt.share.filebot.FileBot.jar

So Java itself is fine (I guess, since jdownloader works well with java), however something is wrong with FileBot.

What did I do wrong?
What can I do to fix this?

Thank you for your help.

Last edited by michldi; 10.02.2016 at 10:34.
Reply With Quote
  #44  
Old 10.02.2016, 11:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

I suggest to change jdtofilebot.sh so it simply creates an empty folder. That way you will know if JDownloader -> script is working fine.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #45  
Old 10.02.2016, 22:11
michldi
Guest
 
Posts: n/a
Default

jiaz, ich hab deinen tipp befolgt und jdtofilebot.sh mit folgendem code befüllt:
Code:
#!/bin/sh
/bin/mkdir /opt/neuneuneu
/bin/mkdir /opt/path
das script im evenscripter habe ich so belassen wie in meinem post oben erwähnt.

das ergebnis: jdtofilebot.sh wurde von JD2 nicht angestoßen.
Reply With Quote
  #46  
Old 11.02.2016, 10:05
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Soweit ich weiß musst du den vollen Pfad angeben. Also /usr/bin/bash /...script
Die anderen Eventscripter scripts nutzen ebenfalls bash oder sh
__________________
JD-Dev & Server-Admin
Reply With Quote
  #47  
Old 11.02.2016, 11:44
michldi
Guest
 
Posts: n/a
Default

danke jiaz, auch für deine geduld. ich werde es heute abend ausprobieren. ich konnte allerdings gestern keine scripts im evenscripter eintragen auf der web-UI. sehr strange. hier zwei bilder. auf dem zweiten bild sieht man die meldung. alle anderen änderungen auf der web-UI (egal wo), werden übernommen. ich bentuze google chrome.



Reply With Quote
  #48  
Old 11.02.2016, 11:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Wahrscheinlich sind die Scripts ungültiges JSON. Kannst du mir das ganze Script zeigen?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #49  
Old 11.02.2016, 12:24
michldi
Guest
 
Posts: n/a
Default

ich bin mir nicht sicher, ob ich deine frage richtig verstanden habe, aber das ist das, was ich in das eventscripter-fenster einfüge (nur das und nicht mehr):

Code:
[{"eventTrigger":"ON_ARCHIVE_EXTRACTED",
"enabled":true,
"name":"FileBot",
"script":"var amcFile = "/opt/share/filebot/jdtofilebot.sh"; \n var path = archive.getFolder(); callAsync(function() {}, amcFile, path);",
"eventTriggerSettings":{}}]
quelle dieses codes ist seite 1 dieses threads, der eintrag von bismarck
Reply With Quote
  #50  
Old 11.02.2016, 12:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Script ist nicht korrektes JSON, so müsste das aussehen

[{"eventTrigger":"ON_ARCHIVE_EXTRACTED",
"enabled":true,
"name":"FileBot",
"script":"var amcFile = "/opt/share/filebot/jdtofilebot.sh";var path = archive.getFolder(); callAsync(function() {}, amcFile, path);",
"eventTriggerSettings":{}}]

und wie gesagt, bitte mal mit Bash versuchen
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 11.02.2016 at 13:21.
Reply With Quote
  #51  
Old 11.02.2016, 13:01
michldi
Guest
 
Posts: n/a
Default

habe das mal copy&paste eingefügt und bekomme die meldung "sorry, failed to set new value". er speichert den eintrag im evenscripter nicht.

solange er den eintrag nicht annimmt, ruft er jdtofilebot.sh nicht auf. im jdtofilebot.sh werde ich heute abend den bash-eintrag vornehmen.
Reply With Quote
  #52  
Old 11.02.2016, 13:22
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

arg, jetzt weiß ich was los ist das forum nimmt das escaping wieder raus
pastebin.com/r4BifXzd
__________________
JD-Dev & Server-Admin
Reply With Quote
  #53  
Old 11.02.2016, 15:41
michldi
Guest
 
Posts: n/a
Default

jiaz, daaaaaanke! er hat es jetzt übernommen. ich habe gestern stunden damit verbracht und jd neuinstalliert etc etc.... er hat das evenscript nun übernommen. zu hause werde ich testen, ob er das sh-script, auf das er verweist, aufruft. und dann geht die reise richtung filebot weiter danke nochmal
Reply With Quote
  #54  
Old 11.02.2016, 15:52
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Nix zu Danken
__________________
JD-Dev & Server-Admin
Reply With Quote
  #55  
Old 11.02.2016, 23:30
michldi
Guest
 
Posts: n/a
Default

jiaz danke nochmal. sowohl die übernahme in den eventscripter als auch der aufruf von jdtofilebot.sh durch JD haben funktioniert.
zu test-zwecken konnte ich getriggert durch JD mit jdtofilebot.sh neue Order erstellen, so wie von dir vorgeschlagen. das funktioniert also

allerdings konnte ich noch kein funktionierendes filebot-script bauen - aber das ist ja kein JD problem.

eine frage:
wenn ich das
Code:
path = archive.getFolder()
richtig verstehe, dann enthält path den pfad zum order der entpackten datei.

ist darin auch der dateiname der entpackten datei enthalten oder nur der pfad zum order selbst, in dem sich die rar-dateien befinden?

wenn der dateiname der entpackten datei nicht in "path" enthalten ist, wie kann ich das aus dem eventscripter-eintrag herauslesen? mit "file = archive.getFile()"?
Reply With Quote
  #56  
Old 12.02.2016, 02:07
CENGOiSM CENGOiSM is offline
JD Beta
 
Join Date: Jun 2015
Posts: 53
Default

Quote:
Originally Posted by michldi View Post
jiaz danke nochmal. sowohl die übernahme in den eventscripter als auch der aufruf von jdtofilebot.sh durch JD haben funktioniert.
zu test-zwecken konnte ich getriggert durch JD mit jdtofilebot.sh neue Order erstellen, so wie von dir vorgeschlagen. das funktioniert also

allerdings konnte ich noch kein funktionierendes filebot-script bauen - aber das ist ja kein JD problem.

eine frage:
wenn ich das
Code:
path = archive.getFolder()
richtig verstehe, dann enthält path den pfad zum order der entpackten datei.

ist darin auch der dateiname der entpackten datei enthalten oder nur der pfad zum order selbst, in dem sich die rar-dateien befinden?

wenn der dateiname der entpackten datei nicht in "path" enthalten ist, wie kann ich das aus dem eventscripter-eintrag herauslesen? mit "file = archive.getFile()"?
Hey michidi,

ich weiß zwar nicht, was du mit dem Dateinamen anstellen willst, aber vielleicht kann dir ja mit meinem Ansatz helfen.
Ich hab das persönlich so gelöst, dass ich in JDownloader für jedes Paket einen Unterordner erstellen lasse (Download Path: /path/to/general/download/folder/<jd:packagename>)

Beispiel du lädst Serie XYZ S01E01.
JD erstellt einen Unterordner, lädt alle rar-Dateien, entpackt das Archiv (mitsamt allen Daten und nicht nur einer Datei, ich glaub da entsteht schon das erste Problem mit getFile() - dass du halt mehr als eine Datei hast öfters), löscht die Archiv-Dateien. Wenn nun jdtofilebot.sh aufgerufen wird, bekommt es den pfad "/path/to/general/download/folder/Unterordner.für.XYZ.S01E01/".
FileBot durchsucht nun den ganzen Unterordner und erledigt dann rest indem es das Video verschiebt, sample (und untertitel wenn gewollt) etc mit samt Unterordner löscht.

Ich hatte ohne Unterordner das Problem, dass wenn ich mehrere Downloads gleichzeitig hatte, Filebot nicht ganz zurecht kam. So erledigt FileBot sehr sauber seine Aufgabe ohne Spuren zu hinterlassen.

Ich hoffe dass hilft dir weiter. ^^
Reply With Quote
  #57  
Old 12.02.2016, 10:15
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@michldi: Danke fürs Feedback! 'archive.getFolder()' beinhaltet natürlich NUR den Pfad
@CENGOiSM: Danke fürs Helfen
__________________
JD-Dev & Server-Admin
Reply With Quote
  #58  
Old 12.02.2016, 12:24
michldi
Guest
 
Posts: n/a
Default

hi CENGOiSM,

vielen vielen dank für die erklärung! ich werde dein setup verfolgen und mich von dem dateinamen lösen.

kannst du mir dein aktuell funktionierendes setup mit dem script in eventscripter, dem jdtofilebot.sh und dem filebot.sh zur verfügung stellen?

ich habe es bisher leider nicht geschafft eine funktionierende kette dieser drei bausteine aufzubauen.

ich würde dann die codes meinen verzeichnispfaden entsprechend modifizieren.
Reply With Quote
  #59  
Old 13.02.2016, 01:01
CENGOiSM CENGOiSM is offline
JD Beta
 
Join Date: Jun 2015
Posts: 53
Default

@Jiaz - Dafür, dass JD im Headless mode so schnell so gut wurde, muss man sich revanchieren. Werden jetzt eigentlich die neuen Captchas von dieser einen sehr bekannten Serien anbietenden Seite unterstützt? Bzw hat 9kw da nachgeholfen? Ich meine letztens hätte JD da Schwierigkeiten gehabt.

@michldi - Viel geändert hab ich nicht mehr, aber hier ist die aktuelle Konfiguration.
=> In den JD Einstellungen musst du deinem Default Download Folder das <jd:packagename> hinzufügen, für den Unterordner.
=> filebot.sh am besten nicht anfassen, bzw. lösch deine Aktuelle und führ die update-filebot.sh aus die mitgeliefert wird, dann hast du die aktuelle FileBot.jar und filebot.sh.
=> Hier ist meine aktuelle jdtofilebot.sh

Quote:
#!/ffp/bin/sh
##FileBot benötigt diese Variablen
LOG="/path/amc.log"
EXC="/path/amc.txt"
SERIEN="/path/{n}/Staffel {s}/{n} S{s}E{e}"
FILME="/path/{n} ({y})/{n} ({fn.contains('1080') ? '1080p ':''}{fn.contains('720') ? '720p ':''}{fn.contains('3D') || fn.contains('3-D') ? '3D ':''}HD)"
###Anime nutzt du glaub nicht ^^# ANIME="/path/{n}/{n} E{absolute}"
UNSORTIERT="/path/{file.structurePathTail}" ### Wenn Filebot mal etwas nicht zuordnen kann, dann kannst du es in einen seperaten Ordner verschieben lassen, dann bleibt es im Downloadordner übersichtlich.

##FileBot ausführen
/ffp/filebot/filebot.sh -script fn:amc --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" "animeFormat=$ANIME" "unsortedFormat=$UNSORTIERT" -non-strict --def unsorted=y --def clean=y

## Aufräumen, --def root löscht den Unterordner mit
/ffp/filebot/filebot.sh -script fn:cleaner "$1" --def root=y
=> Und hier noch der eventscripter
Quote:
[{"eventTrigger":"ON_ARCHIVE_EXTRACTED", "enabled":true, "name":"FileBot", "script":"var amcFile = "/ffp/filebot/jdtofilebot.sh"; \n var path = archive.getFolder(); callAsync(function() {}, amcFile, path);", "eventTriggerSettings":{}}]
Aber am eventscripter hab ich nichts verändert, auch jdtofilebot.sh ist eigentlich soweit gleich geblieben bis auf das mit dem UNSOTIERT.
Wie bei Jiaz denke ich auch dass beim eventscripter einige Zeichen weggelassen werden, deswegen nimm lieber das von Jiaz in seinem pastebin Link.

Poste am besten mal dein Setup, dann können wir schauen wo dein Problem ist.
Reply With Quote
  #60  
Old 14.02.2016, 11:17
michldi
Guest
 
Posts: n/a
Default

hi @all,

thanks for your help.

my setup of jdownloader & filebot works now. The main problem was, that it the event could not be startet by jdownloader when jdownloader was run as admin.
It worked perfectly when jdownloader was run as root. however I solved that issue as well.


here are my steps for NASes that run entware-ng:

A. install java
isntall java headless ejdk1.8.0_73 and reboot your NAS
download Java from here: http://download.oracle.com/otn/java/...ar_2014.tar.gz
create /opt/java and copy that fileinto that folder.

Code:
tar xzf /opt/java/ejdk-8u73-linux-arm-sflt.gz
ln -s /opt/java/ejdk1.8.0_73/linux_arm_sflt/jre/ /opt/java/jdk1.9.0
ln -s /opt/java/ejdk1.8.0_73/linux_arm_sflt/jre/ /opt/java/jre
set group and owner as root:
Code:
chown -R root:root /opt/java

first java-test:
Code:
/opt/java/ejdk1.8.0_73/linux_arm_sflt/jre/bin/java -version
result should look like that:
"java version "1.8......."

reboot your NAS


B. install jdownloader
install jdownloader headless as described in many forums / threads.
set group & owner of the jdownloader-folder as admin:
Code:
chown -R 501:501 /opt/jdownloader

create a jdownloader start-up-script so jdownloader runs as admin

Code:
#!/bin/sh
DESC="JDownloader 2 Headless"
NAME=JDownloader2
PIDFILE=/opt/jdownloader/$NAME.pid
USER=admin
RUN_AS=admin
COMMAND="/opt/java/ejdk1.8.0_73/linux_arm_sflt/jre/bin/java -- -jar /opt/jdownloader/JDownloader.jar"

d_start() {
sleep 10
start-stop-daemon --start --quiet --background --pidfile $PIDFILE --user $USER --chuid $RUN_AS --exec $COMMAND
}

d_stop() {
start-stop-daemon --stop --quiet --pidfile $PIDFILE
sleep 10
if [ -e $PIDFILE ]
then rm $PIDFILE
fi
}

case $1 in
start)
echo -n "Starting $DESC: $NAME"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
d_stop
echo "."
;;
restart)
echo  -n "Restarting $DESC: $NAME"
d_stop
sleep 10
d_start
echo ":"
;;
*)
echo "usage: $NAME [start|stop|restart]"
exit 1
;;
esac
exit
you can put that script in /opt/etc, make it executable and call it by a second executable script named "S93jd2" from /opt/etc/init.d that has the following code:
Code:
#!/bin/sh
/bin/sh /opt/etc/jd2-start.sh start
chandge group and owner to admin [501].

to shut down jdownloader when you turn off your NAS for some reason, create the folders "rc0.d" and "rc6.d" in /opt/etc and create a executable script amed "K93jd2" into those folders that as the following code:
Code:
#!/bin/sh
/bin/sh /opt/etc/jd2-start.sh stop
chandge group and owner of that script to admin [501].


C. install and setup filebot
get filebot_4.6.1_noarch.ipk and copy it to /opt
Code:
cd /opt
opkg install filebot_4.6.1_noarch.ipk
you will find the following folder: /opt/share/filebot/data/root
duplicate that folder to /opt/share/filebot/data/admin
change group and owner of that admin-folder to admin and make it executable (the whole admin-folder inclding its content).
this enabled me to run eventscripter & filebot when jdownloader was running as admin.

create a script called jdtofilebot.sh (executable, group: admin, owner: admin) and copy it to /opt/share/filebot with the following content:
Code:
#!/bin/sh
##FileBot needs that:
LOG="/path_to_logfile/amc.log"
EXCLUDE="/path_to_excluderlist/amc.txt"
SERIEN="/path_to_your_series/{n}/Season {s.pad(2)}/{n}.{s00e00}.{t}"
FILME="/path_to_your_movies/{n} ({y})/{n} ({fn.contains('1080') ? '1080p ':''}{fn.contains('720') ? '720p ':''}{fn.contains('3D') || fn.contains('3-D') ? '3D ':''}HD)"
UNSORTIERT="/path_to_your_unsorted_unrecognized_movies/{file.structurePathTail}" ### separate folder for filebot for the case that it cannot recognize a movie / series

##execute filebot
/opt/share/filebot/bin/filebot.sh -script fn:amc --lang de --log-file $LOG --action move "$1" --def "seriesFormat=$SERIEN" "movieFormat=$FILME" "unsortedFormat=$UNSORTIERT" -non-strict --def unsorted=y --def artwork=y --def xbmc=IP_OF_YOUR_XBMC/KODI --def excludeList=$EXCLUDE --def clean=y

## clean everything
/opt/share/filebot/bin/filebot.sh -script fn:cleaner "$1" --def root=y "exts=jpg|nfo|rar|nfo|htm|html|url|txt|etc" "terms=sample|trailer|etc"

go to /opt/share/filebot/bin and change the command-line of filebot.sh in there to:
Code:
/opt/java/ejdk1.8.0_73/linux_arm_sflt/jre/bin/java $JAVA_OPTS -Xmx150m -Dunixfs=false -DuseExtendedFileAttributes=true -DuseCreationDate=false -Dfile.encoding="UTF-8" -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Dapplication.deployment=ipkg -Dnet.filebot.Archive.extractor="$EXTRACTOR" -Dnet.filebot.AcoustID.fpcalc="fpcalc" -Dapplication.dir="$APP_DATA" -Djava.io.tmpdir="$APP_DATA/temp" -Duser.home="$APP_DATA" -jar "$APP_ROOT/FileBot.jar" "$@"

D. eventscripter in jdownloader
intall eventscripter extension
copy and paste the script from into eventscripter:
pastebin.com/r4BifXzd
I cannot post the eventscripter-code here since the forum removes the escaping of the code.
restart jdownloader.


that's it. I know not all steps are quite the old-fashioned linux style. however that worked for me as a linux-newbie.

Last edited by michldi; 15.02.2016 at 12:13.
Reply With Quote
  #61  
Old 14.02.2016, 13:42
CENGOiSM CENGOiSM is offline
JD Beta
 
Join Date: Jun 2015
Posts: 53
Default

Bei "opkg install fileboot" ist ein o zu viel. ^^
Find ich gut, dass du es selbst hinbekommen hast.
Bei mir war auch das Problem mit dem unpassenden User.
Einfach beides mit Admin Rechten dann läuft alles.
Reply With Quote
  #62  
Old 14.02.2016, 14:17
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@michldi: Thanks for the very good stepbystep howto. But you should not limit JDownloader memory to 150mbyte. That can lead to peformance issues and crashes very fast. You should let java decide the max memory. Only limit if you really have to
__________________
JD-Dev & Server-Admin
Reply With Quote
  #63  
Old 14.02.2016, 14:18
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@CENGOiSM: recaptchav2 wird auch an 9kw und co gesendet, ja
__________________
JD-Dev & Server-Admin
Reply With Quote
  #64  
Old 15.02.2016, 10:13
michldi
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by CENGOiSM View Post
Bei "opkg install fileboot" ist ein o zu viel. ^^
Find ich gut, dass du es selbst hinbekommen hast.
Bei mir war auch das Problem mit dem unpassenden User.
Einfach beides mit Admin Rechten dann läuft alles.
das "opkg" ist schon richtig. wenn man entware-ng auf einer zyxel NAS betreibt, dann ist das wirklich der befehl "opkg".

und ganz so alleine habe ich das nicht hinbekommen. danke für eure hilfe nochmal.

Quote:
Originally Posted by Jiaz View Post
@michldi: Thanks for the very good stepbystep howto. But you should not limit JDownloader memory to 150mbyte. That can lead to peformance issues and crashes very fast. You should let java decide the max memory. Only limit if you really have to
It does not limit jdownloader. It is an enhancement of the memory for the filebot-instance. filebot was running on my system with 128 MB memory. I increased it to 150 MB. jdownloader is not impacted by that.
Reply With Quote
  #65  
Old 15.02.2016, 11:24
CENGOiSM CENGOiSM is offline
JD Beta
 
Join Date: Jun 2015
Posts: 53
Default

@Jiaz gut zu wissen, hab vielen Dank
@michldi nein ich meine das o in "fileboot", ich zumindest kenne es als FileBot
Reply With Quote
  #66  
Old 15.02.2016, 11:34
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

@michldi: thanks for the feedback!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #67  
Old 15.02.2016, 12:13
michldi
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by CENGOiSM View Post
@Jiaz gut zu wissen, hab vielen Dank
@michldi nein ich meine das o in "fileboot", ich zumindest kenne es als FileBot
:) danke. habs geändert
Reply With Quote
  #68  
Old 04.03.2016, 15:33
jdjdjd123 jdjdjd123 is offline
Super Loader
 
Join Date: Nov 2014
Posts: 25
Default

Hallo zusammen, habt ihr evtl. ein gutes Tutorial bzw. einen guten Link zum Einlesen in das Thema jDownloader 2 + Filebot? Würde die Kombination gerne auf meinem Raspberry Pi nutzen, allerdings gibt es zu der Kombination nur wenig bis gar keine Information... Jeder Hinweis ist gerne gesehen, bin Linux-Anfänger, weshalb jede Hilfe (in Form von Tutorials oder Links mit Hinweisen) gerne gesehen ist

Danke an alle!
Reply With Quote
  #69  
Old 13.03.2016, 10:46
rednoah rednoah is offline
JD Alpha
 
Join Date: Dec 2015
Posts: 22
Default

There's an official thread in the FileBot forums as well now:

[JDownloader] Setup for Windows, Linux and Mac OS X:
Code:
**External links are only visible to Support Staff**
Reply With Quote
  #70  
Old 10.07.2016, 13:12
Bigziza Bigziza is offline
JD Alpha
 
Join Date: Dec 2015
Posts: 20
Default

Hey,

ich kenne mich leider mit Scripten zu wenig aus. Kann ich die Scripte von rednoah bedenkenlos übernehmen? Oder steht da irgendetwas drin was nicht ganz sauber ist?

Mit Filebot Node habe ich schon mein Ausdruck erstellt. Ich habe das auf meinem Synology jetzt so geregelt, dass ein Aufgabe erstellt wurde und diese alle 5 Minuten ausgeführt wird. Aber das hier scheint mir der elegantere Weg zu sein.

Und mit der Anleitung von rednoah auch die einfachste?!

Quote:
Originally Posted by rednoah View Post
There's an official thread in the FileBot forums as well now:

[JDownloader] Setup for Windows, Linux and Mac OS X:
Code:
**External links are only visible to Support Staff**
Reply With Quote
  #71  
Old 04.08.2016, 14:17
Der_Kay
Guest
 
Posts: n/a
Default

Hi,

ich habe auch ein Synology und Filebot, Filebot-Node und den JDownloader via Paketmanager installiert.

Leider bekomme ich es nicht hin. Er sagt bei dem Beispiel hier schon "Sorry, failed to set new value" in MyJdownloader im EventScripter. Jemand eine Idee? Es muss doch eine Standard-Lösung geben.

Ok, Syntax war falsch. Verstehe. Wegen dem Escaping. Aber das hier läuft nciht weil es als "Admin" ausgeführt werden muss. Läuft Jdownloader nicht als Admin?

[{"eventTrigger":"ON_ARCHIVE_EXTRACTED",
"enabled":true,
"name":"FileBot",
"script":"var amcFile = "/usr/local/filebot-node/task "1470241707868"";var path = archive.getFolder(); callAsync(function() {}, amcFile, path);",
"eventTriggerSettings":{}}]


**External links are only visible to Support Staff****External links are only visible to Support Staff**

pastebin.com/LXQ0aM2k

Last edited by Der_Kay; 04.08.2016 at 14:39.
Reply With Quote
  #72  
Old 05.08.2016, 11:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

JDownloader und andere Tools sollten nicht als Admin laufen, wenn nicht unbedingt nötig.
Ja korrekt erkannt, wegen dem Escaping. Syntax ist JSon, kannst also immer zum Testen zum Beispiel jsonprettyprint.com nutzen.

Falls du unbedingt admin brauchst, dann kannst du das zb so lösen
superuser.com/questions/440363/can-i-make-a-script-always-execute-as-root
__________________
JD-Dev & Server-Admin
Reply With Quote
  #73  
Old 13.09.2016, 21:59
Bigziza Bigziza is offline
JD Alpha
 
Join Date: Dec 2015
Posts: 20
Default

hey,

ich muss den jdownloader neu installieren. Es hat bei mir also schon mal funktioniert. Aber jetzt will der event scripter nicht mehr...

wenn ich das script manuell mit bash jdownloader-postprocess.sh aufrufe funktioniert es...

hier der event scripter code:

Code:
[{"eventTrigger":"ON_PACKAGE_FINISHED", "enabled":true, "name":"Execute FileBot (PackageFinished)", "script":"var script = JD_HOME + '/jdownloader-postprocess.sh'\n\nvar path = package.getDownloadFolder()\nvar name = package.getName()\nvar label = package.getComment() ? package.getComment() : 'N/A'\n\nvar command = [script, path, name, label, 'PACKAGE_FINISHED']\n\nlog(command)\nlog(callSync(command))\n", "eventTriggerSettings":{}, "id":1470340031171}]
Reply With Quote
  #74  
Old 21.09.2016, 15:39
CENGOiSM CENGOiSM is offline
JD Beta
 
Join Date: Jun 2015
Posts: 53
Default

Quote:
Originally Posted by Bigziza View Post
hey,

ich muss den jdownloader neu installieren. Es hat bei mir also schon mal funktioniert. Aber jetzt will der event scripter nicht mehr...

wenn ich das script manuell mit bash jdownloader-postprocess.sh aufrufe funktioniert es...

hier der event scripter code:

Code:
[{"eventTrigger":"ON_PACKAGE_FINISHED", "enabled":true, "name":"Execute FileBot (PackageFinished)", "script":"var script = JD_HOME + '/jdownloader-postprocess.sh'\n\nvar path = package.getDownloadFolder()\nvar name = package.getName()\nvar label = package.getComment() ? package.getComment() : 'N/A'\n\nvar command = [script, path, name, label, 'PACKAGE_FINISHED']\n\nlog(command)\nlog(callSync(command))\n", "eventTriggerSettings":{}, "id":1470340031171}]

Hey Bigziza,

der EventScripter fragt dich bei erstmaligem Ausführen nach deiner Erlaubnis, hast du das bestätigt? Eventuell wird es deswegen nicht ausgeführt.

Grüße, CENGOiSM
Reply With Quote
  #75  
Old 25.09.2016, 10:13
Bigziza Bigziza is offline
JD Alpha
 
Join Date: Dec 2015
Posts: 20
Default

Hey, ich meine ich hätte es bestätigt. Kann ich das noch einmal abfragen lassen?
Reply With Quote
  #76  
Old 25.09.2016, 17:58
CENGOiSM CENGOiSM is offline
JD Beta
 
Join Date: Jun 2015
Posts: 53
Default

Quote:
Originally Posted by Bigziza View Post
Hey, ich meine ich hätte es bestätigt. Kann ich das noch einmal abfragen lassen?
Das kommt wenn ich mich richtig erinnere immer wieder einmal, wenn man das Script ändert.

Ich hab mal deins mit meinem verglichen, das **External links are only visible to Support Staff**hier auf Pastebin ist dabei rausgekommen. Bin mir nicht sicher obs klappt, weil ich nicht weiß was deine jdownloader-postprocess.sh an Parametern erwartet.

Aber einen Versuch ist es wert, vorallem weil jetzt statt callSync ein callAsync aufgerufen wird. Oder gibt es auch callSync?

Grüße, CENGOiSM
Reply With Quote
  #77  
Old 26.09.2016, 18:52
Bigziza Bigziza is offline
JD Alpha
 
Join Date: Dec 2015
Posts: 20
Default

Hey,
danke für deine Mühe. Leider sehe ich den Link nicht. Kannst du mir ihn per PN schicken?
Reply With Quote
  #78  
Old 26.09.2016, 19:23
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Hier, bitte:
Code:
**External links are only visible to Support Staff**
Grüße, psp
__________________
JD Supporter, Plugin Dev. & Community Manager

Erste Schritte & Tutorials || JDownloader 2 Setup Download
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #79  
Old 28.09.2016, 21:25
Bigziza Bigziza is offline
JD Alpha
 
Join Date: Dec 2015
Posts: 20
Default

Hey,

danke. Ich erhalte allerdings immer die Meldung "Sorry, failed to set new value"


ich habe jdownloader auch noch einmal neuinstalliert und die Frage mit "allow" bestätigt.

funktioniert allerdings mit meinem script immernoch nicht.

Ich errinnere mich, dass man das postprocess script ausführbar machen muss.
das sollte ja mit

Code:
sudo chmod +x jdownloader-postprocess.sh
erledigt sein, oder?

ich jemand kann mir da helfen das wieder zum Laufen zu bringen.

VG
Reply With Quote
  #80  
Old 28.09.2016, 22:45
CENGOiSM CENGOiSM is offline
JD Beta
 
Join Date: Jun 2015
Posts: 53
Default

Quote:
Originally Posted by Bigziza View Post
Hey,

danke. Ich erhalte allerdings immer die Meldung "Sorry, failed to set new value"


ich habe jdownloader auch noch einmal neuinstalliert und die Frage mit "allow" bestätigt.

funktioniert allerdings mit meinem script immernoch nicht.

Ich errinnere mich, dass man das postprocess script ausführbar machen muss.
das sollte ja mit

Code:
sudo chmod +x jdownloader-postprocess.sh
erledigt sein, oder?

ich jemand kann mir da helfen das wieder zum Laufen zu bringen.

VG

Vielleicht hab ich iwo im escaping einen Fehler eingebaut. Genau, mit deinem Befehl sollte es ausführbar sein. Ich finde aber dein script unnötig kompliziert ehrlich gesagt ^^. Brauchst du wirklich ein log(command) oder log(callAsnyc) bzw all die ganzen anderen Infos? Filebot macht das eigl wunderbar von selbst, war bis jetzt fast 99% der zeit richtig bei mir. Und Filebot loggt ganz genau was es wie verschiebt falls dir sowas wichtig ist.

Das Failed to set new value spuckt der EventScripter aus, vermutlich wegen syntax fehlern meinerseits. Eventuell kann da ein Mod mal kurz drüber schauen.

Meine Empfehlung wäre den EventScripter zu entlasten. Jdownloader loggt schon genug. Poste mal dein jdownloader postprocess skript auf pastebin und sende es mir per PN ich schaus mir mal an ob dort alles soweit richtig ist.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 12:09.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.