mirror of
https://github.com/qist/tvbox.git
synced 2026-11-04 02:33:26 +00:00
update PG
This commit is contained in:
1 parent
396591e450
commit
e7b8c6e431
7 files changed
+129
-35
No files matched your search
+10
-8
@@ -1,19 +1,19 @@
|
||||
var rule = {
|
||||
title:'电影港[磁]',
|
||||
编码:'gb2312',
|
||||
搜索编码:'gb2312',
|
||||
host:'https://www.dygang.tv',
|
||||
homeUrl:'/',
|
||||
url: '/fyclass/index_fypage.htm?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/e/search/index.php#tbname=article&show=title,smalltext&tempid=1&Submit=%CB%D1%CB%F7&keyboard=**;post',
|
||||
searchUrl: '/e/search/index.php#tbname=article&show=title%2Csmalltext&tempid=1&Submit=%CB%D1%CB%F7&keyboard=**;post',
|
||||
searchable:2,
|
||||
quickSearch:1,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA',
|
||||
'Referer': 'https://www.dygang.tv/'
|
||||
'User-Agent': 'PC_UA'
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题',
|
||||
@@ -74,13 +74,15 @@ var rule = {
|
||||
},
|
||||
搜索:'table.border1;img&&alt;img&&src;img&&alt;a&&href;img&&alt',
|
||||
预处理:`
|
||||
let new_host=HOST;
|
||||
let new_host=HOST+'/';
|
||||
let new_html=request(new_host, {withHeaders:true});
|
||||
let json=JSON.parse(new_html);
|
||||
let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
|
||||
let cookie=setCk?json[setCk].split(";")[0]:"";
|
||||
log("cookie:"+cookie);
|
||||
rule_fetch_params.headers.Cookie=cookie;
|
||||
setItem(RULE_CK,cookie);
|
||||
log("dygang cookie:"+cookie);
|
||||
if (cookie !== ""){
|
||||
rule_fetch_params.headers.Cookie=cookie;
|
||||
setItem(RULE_CK,cookie);
|
||||
}
|
||||
`,
|
||||
}
|
||||
Reference in new issue
Block a user