JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 05.02.2017, 19:27
sveni_lee sveni_lee is offline
JD Beta
 
Join Date: Oct 2016
Posts: 52
Default crawljob per API übertragen?

Hallo,

ich habe mir ein Addon für KODI geschrieben, welches diverse RSS-feeds ausliest und diese mit meiner Datenbank abgleicht.
Ist bspw. eine Episode nicht vorhanden wird für diese, wenn die Voraussetzungen erfüllt sind, ein Crawljob geschrieben.

nun müsste dieser crawljob an den Server übergeben werden auf dem der jDownloader läuft. lässt sich das per API über myjDownloader realisieren?

gruß
Sveni_lee
Reply With Quote
  #2  
Old 06.02.2017, 11:41
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,522
Default

Mit dem nächsten Update kannst du
/linkgrabberv2/addContainer
type=CRAWLJOB
content=file als dataurl

Bei Fragen bzgl API/MyJDownloader am besten direkt an support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 08.02.2017, 21:44
sveni_lee sveni_lee is offline
JD Beta
 
Join Date: Oct 2016
Posts: 52
Default

leider komm ich nicht so recht weiter...
ich hab jetzt die die myjdapi.py und die __init__.py in einen ordner lib geschoben.
im meinem script hab ich:

Code:
from lib.myjdapi import myjdapi
aber das gibt eine Fehlermeldung:

Traceback (most recent call last):
File "D:\DATA_URI.py", line 4, in <module>
from lib.myjdapi import myjdapi
ImportError: cannot import name myjdapi
[Finished in 0.7s]
Reply With Quote
  #4  
Old 09.02.2017, 09:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,522
Default

Die API hier sieht doch okay aus?
github.com/mmarquezs/My.Jdownloader-API-Python-Library

Die Fehlermeldung oben bedeutet wohl das dir das Modul DATA_URI fehlt?!
__________________
JD-Dev & Server-Admin
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 16:18.
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.