Fix
This commit is contained in:
parent
3d8da2380b
commit
16c9773be3
|
|
@ -28,7 +28,7 @@ public class XPath extends Spider {
|
||||||
|
|
||||||
private HashMap<String, String> getHeaders() {
|
private HashMap<String, String> getHeaders() {
|
||||||
HashMap<String, String> headers = new HashMap<>();
|
HashMap<String, String> headers = new HashMap<>();
|
||||||
headers.put("User-Agent", rule.getUa().isEmpty() ? "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36" : rule.getUa());
|
headers.put("User-Agent", rule.getUa().isEmpty() ? Utils.CHROME : rule.getUa());
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@
|
||||||
"dtUrlNameR": "",
|
"dtUrlNameR": "",
|
||||||
"playUrl": "https://my.duboku.vip/vodplay/{playUrl}.html",
|
"playUrl": "https://my.duboku.vip/vodplay/{playUrl}.html",
|
||||||
"playUa": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
|
"playUa": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
|
||||||
|
"playReferer": "https://www.duboku.tv/",
|
||||||
"searchUrl": "https://my.duboku.vip/index.php/ajax/suggest?mid=1&wd={wd}&limit=10",
|
"searchUrl": "https://my.duboku.vip/index.php/ajax/suggest?mid=1&wd={wd}&limit=10",
|
||||||
"scVodNode": "json:list",
|
"scVodNode": "json:list",
|
||||||
"scVodName": "name",
|
"scVodName": "name",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue