mirror of
https://github.com/mirror/jdownloader.git
synced 2024-11-23 12:09:43 +00:00
sevenzipjbinding:
-added support for Windows on ARM ThingiverseCom: -updated getAuthToken -fixes #EQYZ4558-QAMZ-7277JPHH git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@48976 ebf7c1c2-ba36-0410-9fe8-c592906822b4 Former-commit-id: ecf8227cfc247a9943081c88451fd096db2b1604
This commit is contained in:
parent
18b6c5092b
commit
6321676fec
BIN
ressourcen/libs/sevenzipjbindingWinArm64.jar
Normal file
BIN
ressourcen/libs/sevenzipjbindingWinArm64.jar
Normal file
Binary file not shown.
@ -5,13 +5,6 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.appwork.storage.TypeRef;
|
||||
import org.appwork.utils.Regex;
|
||||
import org.appwork.utils.StringUtils;
|
||||
import org.appwork.utils.parser.UrlQuery;
|
||||
import org.jdownloader.plugins.components.antiDDoSForDecrypt;
|
||||
import org.jdownloader.scripting.JavaScriptEngineFactory;
|
||||
|
||||
import jd.PluginWrapper;
|
||||
import jd.controlling.ProgressController;
|
||||
import jd.http.Browser;
|
||||
@ -26,6 +19,13 @@ import jd.plugins.PluginException;
|
||||
import jd.plugins.components.PluginJSonUtils;
|
||||
import jd.plugins.hoster.DirectHTTP;
|
||||
|
||||
import org.appwork.storage.TypeRef;
|
||||
import org.appwork.utils.Regex;
|
||||
import org.appwork.utils.StringUtils;
|
||||
import org.appwork.utils.parser.UrlQuery;
|
||||
import org.jdownloader.plugins.components.antiDDoSForDecrypt;
|
||||
import org.jdownloader.scripting.JavaScriptEngineFactory;
|
||||
|
||||
@DecrypterPlugin(revision = "$Revision$", interfaceVersion = 2, names = { "thingiverse.com" }, urls = { "https?://(www\\.)?thingiverse\\.com/(thing:\\d+|make:\\d+|[^/]+/(about|designs|collections(/[^/]+)?|makes|likes|things)|groups/[^/]+(/(things|about))?)" })
|
||||
public class ThingiverseCom extends antiDDoSForDecrypt {
|
||||
public ThingiverseCom(PluginWrapper wrapper) {
|
||||
@ -149,11 +149,12 @@ public class ThingiverseCom extends antiDDoSForDecrypt {
|
||||
|
||||
private String getAuthToken(final Browser br) throws Exception {
|
||||
getPage(br, "https://cdn." + this.getHost() + "/site/js/app.bundle.js");
|
||||
final String authtoken = br.getRegex("u=\"([a-f0-9]{32})\"").getMatch(0);
|
||||
final String authtoken = br.getRegex("(?:u|l)=\"([a-f0-9]{32})\"").getMatch(0);
|
||||
if (StringUtils.isEmpty(authtoken)) {
|
||||
throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);
|
||||
} else {
|
||||
return authtoken;
|
||||
}
|
||||
return authtoken;
|
||||
}
|
||||
|
||||
private String[] getAPISearchLinks(Browser br) throws Exception {
|
||||
|
Loading…
Reference in New Issue
Block a user