Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
7fan
dr_py
提交
0ab4f4f6
dr_py
项目概览
7fan
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
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,发现更多精彩内容 >>
提交
0ab4f4f6
编写于
8月 31, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加libvideo
上级
ce69e2d5
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
2 deletion
+13
-2
app.py
app.py
+1
-0
classes/cms.py
classes/cms.py
+1
-0
js/LIBVIO.js
js/LIBVIO.js
+9
-0
js/模板.js
js/模板.js
+2
-2
models/rules.db
models/rules.db
+0
-0
未找到文件。
app.py
浏览文件 @
0ab4f4f6
...
...
@@ -110,6 +110,7 @@ def vod():
# print(type(rule))
# print(ruleDict)
logger
.
info
(
f
'js装载耗时:
{
get_interval
(
t2
)
}
毫秒'
)
# print(ruleDict)
# print(rule)
cms
=
CMS
(
ruleDict
,
db
,
RuleClass
,
PlayParse
,
app
.
config
)
wd
=
getParmas
(
'wd'
)
...
...
classes/cms.py
浏览文件 @
0ab4f4f6
...
...
@@ -350,6 +350,7 @@ class CMS:
r
=
requests
.
get
(
self
.
homeUrl
,
headers
=
self
.
headers
,
timeout
=
self
.
timeout
)
r
.
encoding
=
self
.
encoding
html
=
r
.
text
print
(
html
)
if
self
.
class_parse
and
not
has_cache
:
p
=
self
.
class_parse
.
split
(
';'
)
# print(p)
...
...
js/LIBVIO.js
0 → 100644
浏览文件 @
0ab4f4f6
var
rule
=
Object
.
assign
(
muban
.
首图2
,{
title
:
'
LIBVIO
'
,
host
:
'
https://www.libvio.me
'
,
url
:
'
/type/fyclass-fypage.html
'
,
class_parse
:
'
.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(
\\
d+).html
'
,
searchUrl
:
'
/search/**----------fypage---.html
'
,
searchable
:
1
,
quickSearch
:
1
,
});
\ No newline at end of file
js/模板.js
浏览文件 @
0ab4f4f6
...
...
@@ -62,7 +62,7 @@ var muban = {
searchable
:
0
,
quickSearch
:
0
,
headers
:{
'
User-Agent
'
:
'
MOBILE
_UA
'
,
'
User-Agent
'
:
'
UC
_UA
'
,
// "Cookie": ""
},
class_parse
:
'
.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(
\\
d+).html
'
,
...
...
@@ -72,7 +72,7 @@ var muban = {
推荐
:
'
ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href
'
,
double
:
true
,
// 推荐内容是否双层定位
一级
:
'
.stui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href
'
,
二级
:{
"
title
"
:
"
.stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text
"
,
"
img
"
:
"
.stui-content__thumb .lazyload&&data-original
"
,
"
desc
"
:
"
.stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text
"
,
"
content
"
:
"
.detail&&Text
"
,
"
tabs
"
:
"
.stui-vodlist__head
"
,
"
lists
"
:
"
.stui-content__playlist:eq(#id) li
"
},
二级
:{
"
title
"
:
"
.stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text
"
,
"
img
"
:
"
.stui-content__thumb .lazyload&&data-original
"
,
"
desc
"
:
"
.stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text
"
,
"
content
"
:
"
.detail&&Text
"
,
"
tabs
"
:
"
.stui-vodlist__head
h3
"
,
"
lists
"
:
"
.stui-content__playlist:eq(#id) li
"
},
搜索
:
'
#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text
'
,
}
...
...
models/rules.db
浏览文件 @
0ab4f4f6
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录