Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
言程序plus
dr_py
提交
d0731a4c
dr_py
项目概览
言程序plus
/
dr_py
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d0731a4c
编写于
9月 16, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加聚搜统计
上级
cd519056
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
13 addition
and
2 deletion
+13
-2
base/rules.db
base/rules.db
+0
-0
controllers/vod.py
controllers/vod.py
+8
-0
js/360影视.js
js/360影视.js
+1
-0
js/兔小贝.js
js/兔小贝.js
+1
-0
js/干饭影视.js
js/干饭影视.js
+1
-1
js/看视界.js
js/看视界.js
+2
-1
未找到文件。
base/rules.db
浏览文件 @
d0731a4c
无法预览此类型文件
controllers/vod.py
浏览文件 @
d0731a4c
...
@@ -45,11 +45,18 @@ def vod_home():
...
@@ -45,11 +45,18 @@ def vod_home():
return
None
return
None
def
multi_search
(
wd
):
def
multi_search
(
wd
):
t1
=
time
()
rules
=
getRules
(
'js'
)[
'list'
]
rules
=
getRules
(
'js'
)[
'list'
]
rule_names
=
list
(
map
(
lambda
x
:
x
[
'name'
],
rules
))
rules_exclude
=
[
'drpy'
]
rules_exclude
=
[
'drpy'
]
new_rules
=
list
(
filter
(
lambda
x
:
x
.
get
(
'searchable'
,
0
)
and
x
.
get
(
'name'
,
''
)
not
in
rules_exclude
,
rules
))
new_rules
=
list
(
filter
(
lambda
x
:
x
.
get
(
'searchable'
,
0
)
and
x
.
get
(
'name'
,
''
)
not
in
rules_exclude
,
rules
))
search_sites
=
[
new_rule
[
'name'
]
for
new_rule
in
new_rules
]
search_sites
=
[
new_rule
[
'name'
]
for
new_rule
in
new_rules
]
nosearch_sites
=
set
(
rule_names
)
^
set
(
search_sites
)
nosearch_sites
.
remove
(
'drpy'
)
# print(nosearch_sites)
logger
.
info
(
f
'开始聚搜
{
wd
}
,共计
{
len
(
search_sites
)
}
个规则'
)
logger
.
info
(
f
'开始聚搜
{
wd
}
,共计
{
len
(
search_sites
)
}
个规则'
)
logger
.
info
(
f
'不支持聚搜的规则,共计
{
len
(
nosearch_sites
)
}
个规则:
{
","
.
join
(
nosearch_sites
)
}
'
)
# print(search_sites)
timeout
=
5
timeout
=
5
res
=
[]
res
=
[]
with
open
(
'js/模板.js'
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
'js/模板.js'
,
encoding
=
'utf-8'
)
as
f
:
...
@@ -70,6 +77,7 @@ def vod_home():
...
@@ -70,6 +77,7 @@ def vod_home():
import
atexit
import
atexit
atexit
.
unregister
(
thread
.
_python_exit
)
atexit
.
unregister
(
thread
.
_python_exit
)
executor
.
shutdown
=
lambda
wait
:
None
executor
.
shutdown
=
lambda
wait
:
None
logger
.
info
(
f
'drpy聚搜
{
len
(
search_sites
)
}
个源共计耗时
{
get_interval
(
t1
)
}
毫秒'
)
return
jsonify
({
return
jsonify
({
"list"
:
res
"list"
:
res
})
})
...
...
js/360影视.js
浏览文件 @
d0731a4c
...
@@ -12,6 +12,7 @@ var rule = {
...
@@ -12,6 +12,7 @@ var rule = {
class_name
:
'
电视剧&电影&综艺&动漫
'
,
class_name
:
'
电视剧&电影&综艺&动漫
'
,
class_url
:
'
2&1&3&4
'
,
class_url
:
'
2&1&3&4
'
,
limit
:
5
,
limit
:
5
,
searchable
:
2
,
play_parse
:
true
,
play_parse
:
true
,
lazy
:
'
js:input=input.split("?")[0];log(input);
'
,
lazy
:
'
js:input=input.split("?")[0];log(input);
'
,
// 疑似t4专用的
// 疑似t4专用的
...
...
js/兔小贝.js
浏览文件 @
d0731a4c
...
@@ -5,6 +5,7 @@ var rule = {
...
@@ -5,6 +5,7 @@ var rule = {
url
:
'
/list/mip-data?typeId=fyclass&page=fypage&callback=
'
,
url
:
'
/list/mip-data?typeId=fyclass&page=fypage&callback=
'
,
detailUrl
:
'
/play/fyid
'
,
detailUrl
:
'
/play/fyid
'
,
searchUrl
:
'
/search/index?key=**
'
,
searchUrl
:
'
/search/index?key=**
'
,
searchable
:
2
,
headers
:{
headers
:{
'
User-Agent
'
:
'
MOBILE_UA
'
'
User-Agent
'
:
'
MOBILE_UA
'
},
},
...
...
js/干饭影视.js
浏览文件 @
d0731a4c
...
@@ -8,7 +8,7 @@ var rule = {
...
@@ -8,7 +8,7 @@ var rule = {
"
Cookie
"
:
"
searchneed=ok
"
"
Cookie
"
:
"
searchneed=ok
"
},
},
searchUrl
:
'
/vodsearch/**----------fypage---.html
'
,
searchUrl
:
'
/vodsearch/**----------fypage---.html
'
,
searchable
:
0
,
searchable
:
2
,
// class_name:'电影&网剧&剧集&动漫&综艺&记录',
// class_name:'电影&网剧&剧集&动漫&综艺&记录',
// class_url:'20&1&2&3&4&23',
// class_url:'20&1&2&3&4&23',
class_parse
:
'
.stui-header__menu li:gt(0):lt(5);a&&Text;a&&href;/(
\\
d+).html
'
,
class_parse
:
'
.stui-header__menu li:gt(0):lt(5);a&&Text;a&&href;/(
\\
d+).html
'
,
...
...
js/看视界.js
浏览文件 @
d0731a4c
...
@@ -3,6 +3,6 @@ title:'看视界',
...
@@ -3,6 +3,6 @@ title:'看视界',
host
:
'
https://www.1080kan.cc
'
,
host
:
'
https://www.1080kan.cc
'
,
url
:
'
/show/fyclass--------fypage---.html
'
,
url
:
'
/show/fyclass--------fypage---.html
'
,
searchUrl
:
'
/search/**----------fypage---.html
'
,
searchUrl
:
'
/search/**----------fypage---.html
'
,
searchable
:
0
,
searchable
:
2
,
class_parse
:
'
.navbar-items li:gt(1):lt(6);a&&Text;a&&href;.*/(.*?).html
'
,
class_parse
:
'
.navbar-items li:gt(1):lt(6);a&&Text;a&&href;.*/(.*?).html
'
,
});
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录