Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
mine929
dr_py
提交
61407aff
dr_py
项目概览
mine929
/
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,发现更多精彩内容 >>
提交
61407aff
编写于
9月 10, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加了二级重定向功能
上级
f0096d93
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
45 addition
and
2 deletion
+45
-2
controllers/cms.py
controllers/cms.py
+25
-0
js/version.txt
js/version.txt
+1
-1
js/小强迷.js
js/小强迷.js
+16
-0
models/rules.db
models/rules.db
+0
-0
readme.md
readme.md
+3
-1
未找到文件。
controllers/cms.py
浏览文件 @
61407aff
...
...
@@ -765,6 +765,31 @@ class CMS:
vod_play_from
=
'$$$'
playFrom
=
[]
if
p
.
get
(
'重定向'
)
and
str
(
p
[
'重定向'
]).
startswith
(
'js:'
):
headers
[
'Referer'
]
=
getHome
(
url
)
py_ctx
.
update
({
'input'
:
url
,
'html'
:
html
,
'TYPE'
:
'detail'
,
# 海阔js环境标志
'cateID'
:
fyclass
,
# 当前分类
'fetch_params'
:
{
'headers'
:
headers
,
'timeout'
:
self
.
d
.
timeout
,
'encoding'
:
self
.
d
.
encoding
},
'd'
:
self
.
d
,
'getParse'
:
self
.
d
.
getParse
,
'saveParse'
:
self
.
d
.
saveParse
,
'jsp'
:
jsp
,
'setDetail'
:
setDetail
,
})
ctx
=
py_ctx
# print(ctx)
rcode
=
p
[
'重定向'
].
replace
(
'js:'
,
''
,
1
)
jscode
=
getPreJs
()
+
rcode
# print(jscode)
loader
,
_
=
runJScode
(
jscode
,
ctx
=
ctx
)
# print(loader.toString())
logger
.
info
(
f
'开始执行二级重定向代码:
{
rcode
}
'
)
html
=
loader
.
eval
(
'html'
)
if
isinstance
(
vod
,
JsObjectWrapper
):
html
=
str
(
html
)
if
p
.
get
(
'tabs'
):
# print(p['tabs'].split(';')[0])
vodHeader
=
pdfa
(
html
,
p
[
'tabs'
].
split
(
';'
)[
0
])
...
...
js/version.txt
浏览文件 @
61407aff
3.4.3
\ No newline at end of file
3.4.4
\ No newline at end of file
js/小强迷.js
0 → 100644
浏览文件 @
61407aff
muban
.
首图2
.
二级
.
content
=
'
.stui-content__desc&&Text
'
;
muban
.
首图2
.
二级
.
title
=
'
.stui-content__detail&&h3&&Text;.stui-content__detail&&p:eq(1)&&Text;
'
;
muban
.
首图2
.
二级
.
重定向
=
'
js:let url = jsp.pd(html,".playbtn&&a&&href");log(url);html = request(url)
'
;
muban
.
首图2
.
二级
.
tabs
=
'
.t-ul&&li
'
;
muban
.
首图2
.
二级
.
lists
=
'
.stui-content__playlist:eq(#id)&&li
'
;
var
rule
=
Object
.
assign
(
muban
.
首图2
,{
title
:
'
小强迷
'
,
host
:
'
http://xqmi.top
'
,
url
:
'
/index.php/vod/show/id/fyclass/page/fypage.html
'
,
searchUrl
:
'
/index.php/vod/search/page/fypage/wd/**.html
'
,
searchable
:
1
,
quickSearch
:
1
,
搜索
:
'
li.stui-vodlist__item;a&&title;a&&data-original;.pic-text&&Text;a&&href
'
});
\ No newline at end of file
models/rules.db
浏览文件 @
61407aff
无法预览此类型文件
readme.md
浏览文件 @
61407aff
...
...
@@ -46,11 +46,13 @@
[
dockerfile教程
](
https://blog.csdn.net/qq_46158060/article/details/125718218
)
[
获取本地设备信息
](
https://blog.csdn.net/cui_yonghua/article/details/125508991
)
[
获取本地设备信息
](
https://m.jb51.net/article/140716.htm
)
###### 2022/09/10
-
[X] 1.升级至3.4.4.增加小强迷源,增加二级重定向属性(提供重定向后的源码,让代码重新取重定向过后的线路和播放列表)
###### 2022/09/09
-
[X] 1.增加西瓜源,修复一级不支持lazy的bug
-
[X] 2.兄弟们dockerhub没法push镜像不知道咋回事,3.4.1的镜像自己用docker目录下的文件build吧
-
[X] 3.版本升至3.4.2,增加py源支持,放txt/py目录即可,特别鸣谢Pyramid开发者及xiaoya liu提供的技术和源
-
[X]
3
.版本升至3.4.3,增加了强制升级功能(本地增量覆盖大法)
-
[X]
4
.版本升至3.4.3,增加了强制升级功能(本地增量覆盖大法)
###### 2022/09/08
-
[X] 1.升级到3.2.9,支持自动合并自定义用户配置(内置t4测试源)
-
[X] 2.升级到3.3.0,增加奇珍异兽源
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录