JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 19.06.2018, 01:52
Lyora
Guest
 
Posts: n/a
Default Adding links via new API

Hi

I have a more or less simple script that creates weekly backups of my posts on several different boards, including - if present - attachments. These Im currently downloading via jdownloaders flashgot api, since I can send my logincookies there.

Now Id like to switch over to the new jd2 api, mostly because it offers some added functionality that would really simplify my backup script. But am I correct in that sending cookies isnt supported by the new api?

Is there another way I could solve this?

Thanks
Reply With Quote
  #2  
Old 19.06.2018, 11:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,235
Default

What features are you using that *simplifies your backup script* ?
There are 3 ways to solve this
1.) add new cookie support for adding new links. either within the link itself or via api method
2.) use existing linkcrawler rules feature that already supports customized cookies. there you can create a rule that matches the urls that you want to download and within the rule you can specify the cookies
3.) add new cookie support for crawljob files (Folderwatch), similiar to 1.)

Can you tell me what features you are missing in flashgot api ?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 19.06.2018, 18:28
Lyora
Guest
 
Posts: n/a
Default

Hi

Its not so much anything missing in flashgot api, I can solve this on my end. If I understand it correctly, I could specify downloadfolder for each link via the new api, but not flashgot api. Atm Im downloading attachments to standard folder with downloadrule to create a new folder for each package with packagename. Then my script pauses until the file exists and moves it to my backup folder. That part I could basically skip if I could specify downloadfolder directly, reducing risk of corruption of files.

Also, I dont know if you are planning on keeping the flashgot api? It kinda seems redundant, and Id understand if it gets scrapped at one point.
Reply With Quote
  #4  
Old 19.06.2018, 19:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,235
Default

Flashgot API also supports specification of download directory with *dir* parameter
Did you try that one?

At the moment we don't plan to remove the api because ppl like you are using it for their own tools/scripts
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 19.06.2018, 19:29
Lyora
Guest
 
Posts: n/a
Default

Wow, I totally missed that one

Thanks Sorry for the bother, all fine then
Reply With Quote
  #6  
Old 19.06.2018, 19:40
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,235
Default

So question is answered and you're happy again ?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 19.06.2018, 19:42
Lyora
Guest
 
Posts: n/a
Default

Yes
Reply With Quote
  #8  
Old 19.06.2018, 19:49
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,235
Default

When you need further help or struggle with api/packagizer, just let me know
__________________
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 11:24.
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.