#1
|
|||
|
|||
![]()
Was ist denn mit uloz passiert? Seit gestern oder vorgestern kein Zugriff: **External links are only visible to Support Staff****External links are only visible to Support Staff**
![]() |
#2
|
||||
|
||||
![]() Quote:
Über Kanada geht es einwandfrei.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. ![]() |
#3
|
|||
|
|||
![]()
Nun nach zippy also wohl auch noch uloz. Zwei der besten Hoster blockiert.
Mit JD kann man Geoblockierung wohl nicht umgehen, oder? Wie kann man bei Tor-Firefox einstellen, dass die IP aus Kanada oder USA kommen soll für den Proxy zur Umgehung der Sperre? |
#4
|
||||
|
||||
![]()
Mit dem nächsten Update wird eine entsprechende Meldung angezeigt.
__________________
JD-Dev & Server-Admin |
#5
|
|||
|
|||
![]()
Also wie bei zippy wohl, dankesehr. Man kann ja nicht mal mehr die Website von uloz aufrufen.
|
#6
|
||||
|
||||
![]() Quote:
![]() Quote:
![]() Also einerseits kannst natürlich Proxys nutzen wie bei Zippyshare ala Proxys für Zippyshare funktionieren nicht. Nur um die gewünschten Hoster erweitern. Andererseits im TOR Browser in der Datei "Tor Browser\Browser\TorBrowser\Data\Tor\torrc" eintragen "ExitNodes {CA} StrictNodes 1" oder umändern falls schon vorhanden. Danach den TOR Browser wieder starten. Sollte mit nahezu jedem Land funktionieren. Ein Proxy dürfte aber für Downloads schneller sein.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. ![]() |
#7
|
||||
|
||||
![]() Quote:
Quote:
Quote:
![]() Was muß ich denn bei "keine" eingeben(?): ![]() Und wo und wie muß ich denn uloz hinzufügen? Quote:
Last edited by Fetter Biff; 19.07.2019 at 01:47. |
#8
|
||||
|
||||
![]()
Wenn nur Zippyshare haben willst, dann ja.
Sonst musst noch im Skript zippyshare.com um uloz.to ergänzen. Beispiel: Code:
var standard_filter = " \"filter\" : {\"type\" : \"WHITELIST\",\"entries\" : [ \"zippyshare.com\",\"uloz.to\"]},"; Ggf. noch die gewünschten Länder weiter einschränken. Derzeit wird nur Deutschland und England gefiltert meines Wissens. Siehe folgende Zeile im Skript: Code:
if (temp_JSON.country == "DE" || temp_JSON.country == "GB" || temp_JSON.response_time > max_response_time) { Interval mit 15 Minuten. Die Proxyliste wird alle 15 Minuten meines Wissens aktualisiert. Alternativ einfach als Schaltfläche im JDownloader hinterlegen ggf. noch eine Abfrage im Skript einbauen für die Schaltfläche. Dann kann man es bei Bedarf aktivieren bzw. updaten. Ein regulärer Proxy dürfte schneller als das TOR Netzwerk sein. Im Test war TOR jedenfalls ziemlich langsam. Sonst könnte man auch TOR als (lokalen) Proxy basteln und darüber JDownloader für die einzelnen Seiten nutzen.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. ![]() |
#9
|
||||
|
||||
![]() Quote:
![]() Wie kann ich die 15 Minunten eingeben? Quote:
![]() Quote:
Quote:
Gerade wird ein Fehler angezeigt, wie könnte man den vermeiden(?): ![]() Code:
Wrapped org.jdownloader.extensions.eventscripter.EnvironmentException: Line 22 org.jdownloader.extensions.eventscripter.EnvironmentException: Line 22 jd.http.Browser$BrowserException: Caller: org.jdownloader.extensions.eventscripter.sandboxobjects.BrowserSandBox.getPage(BrowserSandBox.java:140) org.jdownloader.extensions.eventscripter.sandboxobjects.ScriptEnvironment.getPage(ScriptEnvironment.java:551) sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:120) net.sourceforge.htmlunit.corejs.javascript.NativeJavaMethod.call(NativeJavaMethod.java:213) net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1531) net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411) org.jdownloader.scripting.JSHtmlUnitPermissionRestricter$SandboxContextFactory.doTopCall(JSHtmlUnitPermissionRestricter.java:119) net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3057) net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) net.sourceforge.htmlunit.corejs.javascript.Context.evaluateString(Context.java:1212) org.jdownloader.extensions.eventscripter.ScriptThread.evalUNtrusted(ScriptThread.java:284) org.jdownloader.extensions.eventscripter.ScriptThread.executeScipt(ScriptThread.java:176) org.jdownloader.extensions.eventscripter.ScriptThread.run(ScriptThread.java:156) BrowserID:912|BrowserParentID:-1|RequestID:1|URL:https://raw.githubusercontent.com/fate0/proxylist/master/proxy.list ----------------Request Information------------- URL: https://raw.githubusercontent.com/fate0/proxylist/master/proxy.list ConnectIP: raw.githubusercontent.com/151.101.12.133:443 Connection-Timeout: 20000ms Read-Timeout: 60000ms ----------------Request------------------------- GET /fate0/proxylist/master/proxy.list HTTP/1.1 Host: raw.githubusercontent.com User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:67.0) Gecko/20100101 Firefox/67.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de,en-gb;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate, br Cache-Control: no-cache ----------------Response Information------------ Connection-Time: keep-Alive Request-Time: 20ms ----------------Response------------------------ HTTP/1.1 200 OK Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox Strict-Transport-Security: max-age=31536000 X-Content-Type-Options: nosniff X-Frame-Options: deny X-XSS-Protection: 1; mode=block ETag: "8e47470c0de0233ce315da9ea533b82b8c3b9033" Content-Type: text/plain; charset=utf-8 Cache-Control: max-age=300 X-Geo-Block-List: X-GitHub-Request-Id: 75A6:798E:4322B1:4B9D3C:5D315EC2 Content-Encoding: gzip Content-Length: 37589 Accept-Ranges: bytes Date: Fri, 19 Jul 2019 06:13:19 GMT Via: 1.1 varnish Connection: keep-alive X-Served-By: cache-fra19169-FRA X-Cache: HIT X-Cache-Hits: 10 X-Timer: S1563516799.135317,VS0,VE0 Vary: Authorization,Accept-Encoding Access-Control-Allow-Origin: * X-Fastly-Request-ID: 24f644ef5c6332a364e00c83aa242b949bf2d846 Expires: Fri, 19 Jul 2019 06:18:19 GMT Source-Age: 188 ------------------------------------------------ at jd.http.Browser.loadConnection(Browser.java:1452) at jd.http.Browser.getPage(Browser.java:1284) at jd.http.Browser.getPage(Browser.java:1280) at org.jdownloader.extensions.eventscripter.sandboxobjects.BrowserSandBox.getPage(BrowserSandBox.java:140) at org.jdownloader.extensions.eventscripter.sandboxobjects.ScriptEnvironment.getPage(ScriptEnvironment.java:551) at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:120) at net.sourceforge.htmlunit.corejs.javascript.NativeJavaMethod.call(NativeJavaMethod.java:213) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1531) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411) at org.jdownloader.scripting.JSHtmlUnitPermissionRestricter$SandboxContextFactory.doTopCall(JSHtmlUnitPermissionRestricter.java:119) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3057) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at net.sourceforge.htmlunit.corejs.javascript.Context.evaluateString(Context.java:1212) at org.jdownloader.extensions.eventscripter.ScriptThread.evalUNtrusted(ScriptThread.java:284) at org.jdownloader.extensions.eventscripter.ScriptThread.executeScipt(ScriptThread.java:176) at org.jdownloader.extensions.eventscripter.ScriptThread.run(ScriptThread.java:156) Caused by: org.appwork.utils.net.httpconnection.KeepAliveSocketStreamException: java.net.SocketException: Socket is closed at org.appwork.utils.net.httpconnection.KeepAliveSocketStream$2.read(KeepAliveSocketStream.java:214) at java.io.FilterInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org.appwork.utils.net.CountingInputStream.read(CountingInputStream.java:62) at org.appwork.utils.net.LimitedInputStream.read(LimitedInputStream.java:70) at java.io.FilterInputStream.read(Unknown Source) at org.appwork.utils.net.CountingInputStream.read(CountingInputStream.java:62) at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at jd.http.Request.read(Request.java:127) at jd.http.Request.read(Request.java:843) at jd.http.Browser.loadConnection(Browser.java:1440) ... 20 more Caused by: java.net.SocketException: Socket is closed at sun.security.ssl.SSLSocketImpl.getInputStream(Unknown Source) at org.appwork.utils.net.httpconnection.JavaSSLSocketStreamFactory$2.getInputStream(JavaSSLSocketStreamFactory.java:249) at org.appwork.utils.net.httpconnection.KeepAliveSocketStream$2.read(KeepAliveSocketStream.java:212) ... 33 more at org.jdownloader.extensions.eventscripter.sandboxobjects.BrowserSandBox.getPage(BrowserSandBox.java:142) at org.jdownloader.extensions.eventscripter.sandboxobjects.ScriptEnvironment.getPage(ScriptEnvironment.java:551) at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:120) at net.sourceforge.htmlunit.corejs.javascript.NativeJavaMethod.call(NativeJavaMethod.java:213) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1531) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411) at org.jdownloader.scripting.JSHtmlUnitPermissionRestricter$SandboxContextFactory.doTopCall(JSHtmlUnitPermissionRestricter.java:119) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3057) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at net.sourceforge.htmlunit.corejs.javascript.Context.evaluateString(Context.java:1212) at org.jdownloader.extensions.eventscripter.ScriptThread.evalUNtrusted(ScriptThread.java:284) at org.jdownloader.extensions.eventscripter.ScriptThread.executeScipt(ScriptThread.java:176) at org.jdownloader.extensions.eventscripter.ScriptThread.run(ScriptThread.java:156) Caused by: jd.http.Browser$BrowserException: Caller: org.jdownloader.extensions.eventscripter.sandboxobjects.BrowserSandBox.getPage(BrowserSandBox.java:140) org.jdownloader.extensions.eventscripter.sandboxobjects.ScriptEnvironment.getPage(ScriptEnvironment.java:551) sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) net.sourceforge.htmlunit.corejs.javascript.MemberBox.invoke(MemberBox.java:120) net.sourceforge.htmlunit.corejs.javascript.NativeJavaMethod.call(NativeJavaMethod.java:213) net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1531) net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411) org.jdownloader.scripting.JSHtmlUnitPermissionRestricter$SandboxContextFactory.doTopCall(JSHtmlUnitPermissionRestricter.java:119) net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3057) net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) net.sourceforge.htmlunit.corejs.javascript.Context.evaluateString(Context.java:1212) org.jdownloader.extensions.eventscripter.ScriptThread.evalUNtrusted(ScriptThread.java:284) org.jdownloader.extensions.eventscripter.ScriptThread.executeScipt(ScriptThread.java:176) org.jdownloader.extensions.eventscripter.ScriptThread.run(ScriptThread.java:156) BrowserID:912|BrowserParentID:-1|RequestID:1|URL:https://raw.githubusercontent.com/fate0/proxylist/master/proxy.list ----------------Request Information------------- URL: https://raw.githubusercontent.com/fate0/proxylist/master/proxy.list ConnectIP: raw.githubusercontent.com/151.101.12.133:443 Connection-Timeout: 20000ms Read-Timeout: 60000ms ----------------Request------------------------- GET /fate0/proxylist/master/proxy.list HTTP/1.1 Host: raw.githubusercontent.com User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:67.0) Gecko/20100101 Firefox/67.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de,en-gb;q=0.7,en;q=0.3 Accept-Encoding: gzip, deflate, br Cache-Control: no-cache ----------------Response Information------------ Connection-Time: keep-Alive Request-Time: 20ms ----------------Response------------------------ HTTP/1.1 200 OK Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; sandbox Strict-Transport-Security: max-age=31536000 X-Content-Type-Options: nosniff X-Frame-Options: deny X-XSS-Protection: 1; mode=block ETag: "8e47470c0de0233ce315da9ea533b82b8c3b9033" Content-Type: text/plain; charset=utf-8 Cache-Control: max-age=300 X-Geo-Block-List: X-GitHub-Request-Id: 75A6:798E:4322B1:4B9D3C:5D315EC2 Content-Encoding: gzip Content-Length: 37589 Accept-Ranges: bytes Date: Fri, 19 Jul 2019 06:13:19 GMT Via: 1.1 varnish Connection: keep-alive X-Served-By: cache-fra19169-FRA X-Cache: HIT X-Cache-Hits: 10 X-Timer: S1563516799.135317,VS0,VE0 Vary: Authorization,Accept-Encoding Access-Control-Allow-Origin: * X-Fastly-Request-ID: 24f644ef5c6332a364e00c83aa242b949bf2d846 Expires: Fri, 19 Jul 2019 06:18:19 GMT Source-Age: 188 ------------------------------------------------ at jd.http.Browser.loadConnection(Browser.java:1452) at jd.http.Browser.getPage(Browser.java:1284) at jd.http.Browser.getPage(Browser.java:1280) at org.jdownloader.extensions.eventscripter.sandboxobjects.BrowserSandBox.getPage(BrowserSandBox.java:140) ... 17 more Caused by: org.appwork.utils.net.httpconnection.KeepAliveSocketStreamException: java.net.SocketException: Socket is closed at org.appwork.utils.net.httpconnection.KeepAliveSocketStream$2.read(KeepAliveSocketStream.java:214) at java.io.FilterInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org.appwork.utils.net.CountingInputStream.read(CountingInputStream.java:62) at org.appwork.utils.net.LimitedInputStream.read(LimitedInputStream.java:70) at java.io.FilterInputStream.read(Unknown Source) at org.appwork.utils.net.CountingInputStream.read(CountingInputStream.java:62) at java.util.zip.InflaterInputStream.fill(Unknown Source) at java.util.zip.InflaterInputStream.read(Unknown Source) at java.util.zip.GZIPInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at jd.http.Request.read(Request.java:127) at jd.http.Request.read(Request.java:843) at jd.http.Browser.loadConnection(Browser.java:1440) ... 20 more Caused by: java.net.SocketException: Socket is closed at sun.security.ssl.SSLSocketImpl.getInputStream(Unknown Source) at org.appwork.utils.net.httpconnection.JavaSSLSocketStreamFactory$2.getInputStream(JavaSSLSocketStreamFactory.java:249) at org.appwork.utils.net.httpconnection.KeepAliveSocketStream$2.read(KeepAliveSocketStream.java:212) ... 33 more (#22) |
#10
|
||||
|
||||
![]() Quote:
Quote:
Im Skript fügst darüber folgende Zeile ein: Code:
if (name == "Geoblocking: zippy") { Code:
if (name == "Geoblocking: zippy" || interval >= 10000) { Code:
} Quote:
Quote:
Code:
var html = getPage("https" + "://raw.githubusercontent.com/fate0/proxylist/master/proxy.list"); Code:
var html; try { html = getPage("https" + "://raw.githubusercontent.com/fate0/proxylist/master/proxy.list"); } catch (e) {}
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. ![]() Last edited by thecoder2012; 19.07.2019 at 11:28. |
#11
|
|||||
|
|||||
![]()
Vielen Dank!
Quote:
![]() Quote:
![]() ![]() Quote:
Die Zeile hier einfügen(?): ![]() Quote:
![]() Quote:
Code:
//Proxylist updates for Zippyshare.com //Trigger: Interval (e.g. 900000ms) //disablePermissionChecks(); //setNotifyOnException(false); if (name == "Geoblocking: zippy" || interval >= 10000) { var old_proxylist = []; var new_proxylist = ""; var max_response_time = 1.5; //1.5 or higher, 1 is too low var proxy_test = 0; //1=ON,0=OFF var max_proxies = 0; //0=Unlimited var old_proxylist = []; var new_proxylist = ""; var standard_filter = " \"filter\" : {\"type\" : \"WHITELIST\",\"entries\" : [ \"zippyshare.com\",\"uloz.to\",\"uloz.net\"]},"; //\"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 settings = "org.jdownloader.updatev2.InternetConnectionSettings"; var storage = "cfg/org.jdownloader.settings.InternetConnectionSettings"; old_proxylist = callAPI("config", "get", settings, storage, "customproxylist"); var html; try { html = getPage("https" + "://raw.githubusercontent.com/fate0/proxylist/master/proxy.list"); } catch (e) {} 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 (temp_JSON.country == "DE" || temp_JSON.country == "GB" || temp_JSON.country == "FR" || 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 + "]"); function IsValidJSONString(str) { if (typeof str !== "string") { return false; } try { JSON.parse(str); } catch (e) { return false; } return true; } } |
#12
|
|||
|
|||
![]()
Da erscheint wieder eine Fehlermeldung:
![]() ![]() Code:
net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError: "name" is not defined. (#5) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3629) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3613) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3683) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1690) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1622) at script(:5) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411) at org.jdownloader.scripting.JSHtmlUnitPermissionRestricter$SandboxContextFactory.doTopCall(JSHtmlUnitPermissionRestricter.java:119) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3057) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at net.sourceforge.htmlunit.corejs.javascript.Context.evaluateString(Context.java:1212) at org.jdownloader.extensions.eventscripter.ScriptThread.evalUNtrusted(ScriptThread.java:284) at org.jdownloader.extensions.eventscripter.ScriptThread.executeScipt(ScriptThread.java:176) at org.jdownloader.extensions.eventscripter.ScriptThread.run(ScriptThread.java:156) |
#13
|
||||
|
||||
![]() Quote:
![]() Quote:
Quote:
Also das Skript hast vorbildlich angepasst. Die Fehlermeldung ist mein Fehler. Da "name" oder "interval" je nach Szenario nicht gesetzt ist.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. ![]() Last edited by thecoder2012; 20.07.2019 at 14:58. |
#14
|
||||
|
||||
![]() Quote:
![]() Hier paßte ich es an: ![]() Ich könnte dem Skirpt-Namen vielleicht noch uloz hinufügen oder ist der bestehende Name für das Funktionieren des Skirpts erforderlich? Hier sind ja noch andere Skripte, woher weiß man denn, welches das richtige ist im Menü oder in dem Fenster oben? Quote:
Quote:
![]() Vielleicht hier was eintragen: ![]() Quote:
![]() Last edited by Fetter Biff; 19.07.2019 at 14:59. |
#15
|
||||
|
||||
![]() Quote:
Quote:
Quote:
Neues Hauptskript: 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 = 1.5; //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\" : [ \"zippyshare.com\"]},"; //\"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; } Zusätzliches kleines Skript um das Menü zu nutzen trotz "Intervall" im Hauptskript: Code:
// Button for proxylist updates // Trigger: Schaltfläche Werkzeuglsite bestätigt if (name == "Geoblocking: zippy") { setProperty("updatingProxy", true, true); } Anmerkung: Bitte beachten wenn ein Intervall verwendet wird und ein Menü dann sollte es auf z.B. 10000ms (10s) gestellt werden. Falls der Rechner schnell genug ist, dann gerne auch weniger als 10s. Der Wert "refreshtime" kam hinzu um einzustellen wie oft es automatisiert sich aktualisieren soll, wenn kein schnelleres Update (per Eintrag im Hauptmenü/Werkzeugleiste) gewünscht wird. Im Hauptskript wurde nun eine Option geschaffen um direkt oben die unerwünschten Länder eintragen zu können statt irgendwo weiter unten im Skript. Quote:
Wenn Dich die Meldung stört, dann kannst noch ein "disablePermissionChecks();" einfügen im Skript.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. ![]() Last edited by thecoder2012; 21.07.2019 at 02:23. |
#16
|
||||||
|
||||||
![]() Quote:
Quote:
Quote:
Quote:
![]() Quote:
Quote:
|
#17
|
||||
|
||||
![]() Quote:
Dagegen der Name vom Skript selbst ist frei wählbar, wenn es sich nicht um das Menü handelt sondern um die Übersicht als Auflistung aller Skripte im Ereignis-Skripter. Du musst noch den passenden Trigger einstellen "Schaltfläche Werkzeuglsite bestätigt" in der Liste vom Ereignis-Skripter. Quote:
Hab Dir mal zwei Bilder dazu erstellt: ![]() ![]() Das kannst in jedem Skript einfügen, je nach wo die Meldung her kommt.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. ![]() |
#18
|
|||
|
|||
![]()
Das heißt, dieser Name
![]() muß mit diesem ![]() übereinstimmen, wenn ich recht verstehe. Dann belasse ich die also so, ist sicherer wohl. Quote:
![]() Quote:
![]() Code:
# this is a comment // this is also a comment # comment out for jdownloader.org #jdownloader.org # comment out below for all accounts with ID 'test*' @ jdownloader.org #test@jdownloader.org # comment out below for account with ID 'test' @ jdownloader.org #test$@jdownloader.org # you can use pattern for account ID and host, eg accountPattern@hostPattern zippyshare.com uloz.to uloz.net ![]() Aber irgendwas fehlt bestimmt noch oder habe ich falsch gemacht, wenn ich hier ![]() klicke, passiert offenbar nichts, die zippy-Links in der Downloadliste werden nicht geladen. Eine Meldung erscheint auch nicht mehr. Liegt vielleicht hierran: ![]() |
#19
|
|||
|
|||
![]() Quote:
![]() |
#20
|
||||
|
||||
![]() Quote:
Quote:
Ja. Bei schnelleren Rechnern geht auch weniger. Oder du wartest 15 Minuten ab bis dein Klick auch tatsächlich umgesetzt wird bei 900000ms. ![]()
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. ![]() Last edited by thecoder2012; 20.07.2019 at 23:38. |
![]() |
Thread Tools | |
Display Modes | |
|
|