#1481
|
||||
|
||||
![]()
@Mydgard
If I understand correctly, you WANT all files to go into the "Verschiedene Dateien" package? You can easily do this via Packagizer rule, see the following screenshot: ![]() Once activated, all URLs you add afterwards will go into a package named "Verschiedene Dateien". -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#1482
|
|||
|
|||
![]()
hi I have a problem when I catch certain links with
1- "add new web links" and then click on 2- "continue with option - 3 start deep connection analysis" 4- start the windows "drag to download" and the window at the bottom right of "search links" 5- every now and then, it depends on the quantity of connections, I get a window with "PROCESS PLAYLIST" written where I should always click to download other files. This is what I do, the problem is, can I have a script, a rule, which allows me automatically without me not manually interfacing, that process playlist always goes ok, automatically? Thanks I hope someone helps me. |
#1483
|
||||
|
||||
![]()
playlist for youtube? check settings > plugins > youtube
as it has pre defined playlist options there, with a default on ask.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#1484
|
|||
|
|||
![]() Quote:
found at least LinkgrabberSettings.variouspackage not LinkgrabberSettings.variouspackageenabled ... anyway, after i disabled it it tried to put in links, but they are still separated into another folder ... is this a thing where i have to restart jd2 prior to work? Will try that eventscripter thing from psp ![]() EDIT: Okay okay it is Packagizer not event scripter ![]() Last edited by Mydgard; 31.07.2020 at 12:42. |
#1485
|
|||
|
|||
![]()
Okay the packagizer just works thx psp
![]() BTW found a example eventscripter "Download zurücksetzen wenn Geschwindigkeit niedrig", can anyone explain a little bit? Would like to use that only for rapidgator Thx in advance. |
#1486
|
|||
|
|||
![]() Quote:
Replace the example script with the following: Code:
//check if downloads are running at all if (isDownloadControllerRunning() && !isDownloadControllerStopping()) { var running = getRunningDownloadLinks(); //loop through all running Downloads for (var i = 0; i < running.length; i++) { //check if download host is rapidgator.net if (running[i].getHost() == "rapidgator.net") { //check if the download has been running at least 30 seconds if (running[i].getDownloadDuration() > 30000) { //check if the current speed is below 50kb/s if (running[i].getSpeed() < 50 * 1024) { //stop the download and restart it running[i].abort(); } } } } } |
#1487
|
|||
|
|||
![]()
Thx mgpai, will try that
![]() Do you have any idea? Dunno much about javascript etc ... |
#1488
|
|||
|
|||
![]() Quote:
Code:
/* Toggle packagizer extension Trigger: Toolbar Button Pressed Customize main toolbar > Add a new 'Eventscripter Trigger' button > Rename it to "Toggle Packagizer" (without quotes, case-sensitive) > Change Icon (optional) */ if (name == "Toggle Packagizer") { var interfaceName = "org.jdownloader.controlling.packagizer.PackagizerSettings", key = "PackagizerEnabled", value = callAPI("config", "get", interfaceName, null, key), message = "Packagizer " + (value ? "disabled." : "enabled."); callAPI("config", "set", interfaceName, null, key, !value) && alert(message); } |
#1489
|
||||
|
||||
![]()
@Mydgard google translate not perfect, I covered by basis with either telling you if you disable it will package all into respective package names, else you could increase the threshold to package more into various. If decrypter plugins define packagename it would override various. So yah psp recommendation of package customiser would be the better solution if you want to stop that also.
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#1490
|
|||
|
|||
![]() Quote:
![]() I must check now 2 folders for log? ![]() And it all workaround because 'archive.getExtractionLog()' not works? ![]() |
#1491
|
|||
|
|||
![]()
Hi,
I have a quick question about how I can get the download link of a file. I tried:
is it buggy or not possible? Last edited by 59grcGTj; 10.08.2020 at 17:32. |
#1492
|
|||
|
|||
![]()
hiho,
ich verwende ein hier vorgestelltes script zum automatischen downloaden von proxys. funzt soweit immer noch super. ich würde allerdings gerne div. ports dieser proxyliste auf ne blacklist legen, da proxys mit diesen ports sowieso nie erfolgreiche downloads bringen. vieleicht ähnlich zu der schon vorhandenen country filterliste? jetzt frag ich mich als programmier-noob, ob mir jemand das script selber pimpen könnte, oder was dazu schreiben könnte? damit wir nicht immer nach dem script suchen müssen, post ichs hier nochmal rein, wenn ich darf ... Code:
disablePermissionChecks(); setNotifyOnException(false); setAdvancedAlert(true); // Proxylist updates for hosters (e.g. Zippyshare.com) // Trigger: Interval (e.g. 10000ms) var refreshtime = "900"; // (e.g. 900s) var myCountries = ["GB", "DE", "FR"]; //Filterlist for countries var max_response_time = 2; //1.5 or higher (e.g. 2), 1 is too low var proxy_test = 0; //1=ON,0=OFF (very slow) var max_proxies = 0; //0=Unlimited var standard_filter = " \"filter\" : {\"type\" : \"WHITELIST\",\"entries\" : [ \"hoster 1\", \"hoster 2\"]},"; //\"filter\" : null, var add_proxy = JSON.parse("{\"proxy\" : {\"username\" : null,\"password\" : null,\"port\" : 80,\"address\" : null,\"type\" : \"NONE\",\"preferNativeImplementation\" : false,\"resolveHostName\" : false,\"connectMethodPrefered\" : false},\"rangeRequestsSupported\" : true," + standard_filter + "\"pac\" : false,\"reconnectSupported\" : false,\"enabled\" : true}"); var filter = new Array(); var old_proxylist = []; var new_proxylist = ""; var settings = "org.jdownloader.updatev2.InternetConnectionSettings"; var storage = "cfg/org.jdownloader.settings.InternetConnectionSettings"; old_proxylist = callAPI("config", "get", settings, storage, "customproxylist"); if (IsValidname() || IsValidinterval() && ((Math.round(Date.now() / 1000) - getProperty("LastProxyUpdate", true)) >= refreshtime) && !getProperty("updatingProxy", true) || getProperty("updatingProxy", true)) { if (!getProperty("updatingProxy", true)) { setProperty("LastProxyUpdate", Math.round(Date.now() / 1000), true); } else { if (getProperty("updatingProxy", true)) { setProperty("updatingProxy", false, true); } } var html; try { html = getPage("https" + "://raw.githubusercontent.com/fate0/proxylist/master/proxy.list"); var lines = html.split("\n"); for (var key in old_proxylist) { if (old_proxylist.hasOwnProperty(key)) { if (old_proxylist[key].proxy.type == "DIRECT" || old_proxylist[key].proxy.type == "NONE" || old_proxylist[key].enabled == false) { if (new_proxylist == "") { new_proxylist += JSON.stringify(old_proxylist[key]); } else { new_proxylist += "," + JSON.stringify(old_proxylist[key]); } } } } var myBr = getBrowser(); for (var i = 0; i < lines.length; ++i) { if (IsValidJSONString(lines[i])) { var temp_JSON = JSON.parse(lines[i]); var add_proxy_new = add_proxy; add_proxy_new.proxy.type = temp_JSON.type.toUpperCase(); add_proxy_new.proxy.port = temp_JSON.port; add_proxy_new.proxy.address = temp_JSON.host; if (myCountries.indexOf(temp_JSON.country) > -1 || temp_JSON.response_time > max_response_time) { continue; //skip proxy } var errorcheck = 0; if (proxy_test == 1) { myBr.setProxy(temp_JSON.type + "://" + temp_JSON.host + ":" + temp_JSON.port); try { myBr.getPage("http://www.google.de/"); } catch (e) { errorcheck = 1; } } if (errorcheck == 0 && proxy_test == 1 || proxy_test != 1) { if (add_proxy_new.proxy.address && filter[temp_JSON.host] != true) { filter[temp_JSON.host] = true; if (new_proxylist == "") { new_proxylist += JSON.stringify(add_proxy_new); } else { new_proxylist += "," + JSON.stringify(add_proxy_new); } } } } if (i >= max_proxies && max_proxies > 0) { break; } } callAPI("config", "set", settings, storage, "customproxylist", "[" + new_proxylist + "]"); } catch (e) {} } function IsValidJSONString(str) { if (typeof str !== "string") { return false; } try { JSON.parse(str); } catch (e) { return false; } return true; } function IsValidname() { try { if (name == "Geoblocking: zippy") { return true; } } catch (e) { return false; } return true; } function IsValidinterval() { try { if (interval >= 10000) { return true; } } catch (e) { return false; } return true; } |
#1493
|
|||
|
|||
![]()
If the URL is protected, you may need to use:
Code:
var myString = myDownloadLink.getPluginURL(); |
#1494
|
||||
|
||||
![]()
@Karli
Ich habe die EventScripter Threads soeben zusammengeführt. Es gibt hier den User mgpai, der gerne bei sowas hilft ... ich empfehle dir jedoch trotzdem, deine Anfrage nochmals in Englisch in diesem Thread zu stellen (Falls nötig Übersetzer verwenden). Grüße, psp
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#1495
|
|||
|
|||
![]()
thx @pspzockerscene
short in (d)englisch *g* is ist possible, to add an blacklist for certain ports in this script like the blacklist for countrycodes? |
#1496
|
||||
|
||||
![]() Quote:
He is talking about that proxy script, see his last post. @mgpai: Wouldn't it make sense to setup a GitHub repo for all of these scripts? -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#1497
|
|||
|
|||
![]() Quote:
Code:
disablePermissionChecks(); setNotifyOnException(false); setAdvancedAlert(true); // Proxylist updates for hosters (e.g. Zippyshare.com) // Trigger: Interval (e.g. 10000ms) var refreshtime = "900"; // (e.g. 900s) var myCountries = ["GB", "DE", "FR"]; //Filterlist for countries var myPorts = [2333, 10174]; //Proxy port blacklist (Added by mgpai) var max_response_time = 2; //1.5 or higher (e.g. 2), 1 is too low var proxy_test = 0; //1=ON,0=OFF (very slow) var max_proxies = 0; //0=Unlimited var standard_filter = " \"filter\" : {\"type\" : \"WHITELIST\",\"entries\" : [ \"hoster 1\", \"hoster 2\"]},"; //\"filter\" : null, var add_proxy = JSON.parse("{\"proxy\" : {\"username\" : null,\"password\" : null,\"port\" : 80,\"address\" : null,\"type\" : \"NONE\",\"preferNativeImplementation\" : false,\"resolveHostName\" : false,\"connectMethodPrefered\" : false},\"rangeRequestsSupported\" : true," + standard_filter + "\"pac\" : false,\"reconnectSupported\" : false,\"enabled\" : true}"); var filter = new Array(); var old_proxylist = []; var new_proxylist = ""; var settings = "org.jdownloader.updatev2.InternetConnectionSettings"; var storage = "cfg/org.jdownloader.settings.InternetConnectionSettings"; old_proxylist = callAPI("config", "get", settings, storage, "customproxylist"); if (IsValidname() || IsValidinterval() && ((Math.round(Date.now() / 1000) - getProperty("LastProxyUpdate", true)) >= refreshtime) && !getProperty("updatingProxy", true) || getProperty("updatingProxy", true)) { if (!getProperty("updatingProxy", true)) { setProperty("LastProxyUpdate", Math.round(Date.now() / 1000), true); } else { if (getProperty("updatingProxy", true)) { setProperty("updatingProxy", false, true); } } var html; try { html = getPage("https" + "://raw.githubusercontent.com/fate0/proxylist/master/proxy.list"); var lines = html.split("\n"); for (var key in old_proxylist) { if (old_proxylist.hasOwnProperty(key)) { if (old_proxylist[key].proxy.type == "DIRECT" || old_proxylist[key].proxy.type == "NONE" || old_proxylist[key].enabled == false) { if (new_proxylist == "") { new_proxylist += JSON.stringify(old_proxylist[key]); } else { new_proxylist += "," + JSON.stringify(old_proxylist[key]); } } } } var myBr = getBrowser(); for (var i = 0; i < lines.length; ++i) { if (IsValidJSONString(lines[i])) { var temp_JSON = JSON.parse(lines[i]); var add_proxy_new = add_proxy; add_proxy_new.proxy.type = temp_JSON.type.toUpperCase(); add_proxy_new.proxy.port = temp_JSON.port; add_proxy_new.proxy.address = temp_JSON.host; if (myCountries.indexOf(temp_JSON.country) > -1 || temp_JSON.response_time > max_response_time || myPorts.indexOf(temp_JSON.port) > -1) { // myPorts.indexOf(temp_JSON.port) > -1 (added by mgpsi) continue; //skip proxy } var errorcheck = 0; if (proxy_test == 1) { myBr.setProxy(temp_JSON.type + "://" + temp_JSON.host + ":" + temp_JSON.port); try { myBr.getPage("http://www.google.de/"); } catch (e) { errorcheck = 1; } } if (errorcheck == 0 && proxy_test == 1 || proxy_test != 1) { if (add_proxy_new.proxy.address && filter[temp_JSON.host] != true) { filter[temp_JSON.host] = true; if (new_proxylist == "") { new_proxylist += JSON.stringify(add_proxy_new); } else { new_proxylist += "," + JSON.stringify(add_proxy_new); } } } } if (i >= max_proxies && max_proxies > 0) { break; } } callAPI("config", "set", settings, storage, "customproxylist", "[" + new_proxylist + "]"); } catch (e) {} } function IsValidJSONString(str) { if (typeof str !== "string") { return false; } try { JSON.parse(str); } catch (e) { return false; } return true; } function IsValidname() { try { if (name == "Geoblocking: zippy") { return true; } } catch (e) { return false; } return true; } function IsValidinterval() { try { if (interval >= 10000) { return true; } } catch (e) { return false; } return true; } |
#1498
|
|||
|
|||
![]()
oh wow!
it works fine big thx!!!! Last edited by Karli; 11.08.2020 at 18:40. |
#1499
|
|||
|
|||
![]() Quote:
![]() |
#1500
|
||||
|
||||
![]() Quote:
![]() I also have github so I might even contribute ![]() -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
![]() |
Thread Tools | |
Display Modes | |
|
|