JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 22.02.2021, 01:30
Tedolly Tedolly is offline
Giga Loader
 
Join Date: Dec 2015
Posts: 99
Default [EventScripter] JD-Script: Proxy ein- und auschalten möglich?

Kann man die Proxy innerhalb eines Scripts auch einzeln ein- und ausschalten?

In keiner Doku habe ich eine Möglichkeit gefunden. Die einzige Lösung, die ich fand (in einem anderen Script, nicht in einer Doku), war die gesamte Proxy-Liste mit callAPI und "customproxylist" vollständig einzulesen und mit callAPI dann geändert wieder einzuspielen.

Nebenbei:
in welcher Doku kann ich irgendwas zu "customproxylist" lesen?? "customproxylist" habe ich einzig und allein in einem anderen Script erlesen.
Reply With Quote
  #2  
Old 24.02.2021, 17:46
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Hi,
es gibt keine API Calls dafür.
Du kannst nur das json über die Profieinstellungen holen, ändern und neu setzen.

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
  #3  
Old 24.02.2021, 18:30
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,533
Default

@psp: Possible to achieve this using Eventscripter.

@Tedolly: You can use the config namespace to configure JD settings.

To read/modify the proxylist:
  • Read the 'customproxylist' object using 'get' method.
  • Loop through each individual objects in the array and query/modify them.
  • Replace the existing 'customproxylist" object with the modified one, using 'set' method.
Reply With Quote
  #4  
Old 24.02.2021, 18:35
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Quote:
Originally Posted by mgpai View Post
@psp: Possible to achieve this using Eventscripter.
Yap I know I was just about to edit my post.

@Tedolly
mgpai hat in seinem Post beschrieben, wie sich die Einstellungen über EventScripter Scripte ändern lassen.

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
  #5  
Old 26.02.2021, 05:19
Tedolly Tedolly is offline
Giga Loader
 
Join Date: Dec 2015
Posts: 99
Default

Vielen Dank für die Antworten.

Quote:
Originally Posted by pspzockerscene View Post
Hi,
es gibt keine API Calls dafür.
Du kannst nur das json über die Profieinstellungen holen, ändern und neu setzen.
Grüße, psp
Danke, das ist (leider) die richtige Antwort.

Mir ging es darum, ob man die Proxys EINZELN direkt ein- und ausschalten kann. Vielleicht hätte ich das stärker betonen sollen.

Dann muss ich eben für jeden einzelnen Proxy die gesamte Proxy-Liste mit customproxylist lesen, den betreffenden Proxy ändern und zurückschreiben. mgpai, der Master of Scripts, hat ja dazu dankenswerterweise einige unglaubliche Scripte veröffentlicht. Wo hat er nur dieses ganze Wissen her
Reply With Quote
  #6  
Old 26.02.2021, 12:07
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 70,922
Default

Korrekt.

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
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 00:38.
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.