Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zzzlllmmm1
dr_py
提交
1e56b979
dr_py
项目概览
zzzlllmmm1
/
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,发现更多精彩内容 >>
提交
1e56b979
编写于
9月 09, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加西瓜源
上级
a58cba7f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
4 deletion
+27
-4
controllers/cms.py
controllers/cms.py
+5
-4
js/吸瓜.js
js/吸瓜.js
+20
-0
models/rules.db
models/rules.db
+0
-0
readme.md
readme.md
+2
-0
未找到文件。
controllers/cms.py
浏览文件 @
1e56b979
...
...
@@ -112,7 +112,7 @@ class CMS:
# print(headers)
self
.
headers
=
headers
self
.
host
=
host
self
.
homeUrl
=
urljoin
(
host
,
homeUrl
)
if
host
and
homeUrl
else
homeUrl
self
.
homeUrl
=
urljoin
(
host
,
homeUrl
)
if
host
and
homeUrl
else
homeUrl
or
host
if
url
.
find
(
'['
)
>-
1
and
url
.
find
(
']'
)
>
-
1
:
u1
=
url
.
split
(
'['
)[
0
]
u2
=
url
.
split
(
'['
)[
1
].
split
(
']'
)[
0
]
...
...
@@ -369,8 +369,8 @@ class CMS:
# print(self.url)
print
(
self
.
headers
)
has_cache
=
False
# print(self.homeUrl)
if
self
.
homeUrl
.
startswith
(
'http'
):
# print(self.homeUrl)
# print(self.class_parse)
try
:
if
self
.
class_parse
:
...
...
@@ -638,10 +638,11 @@ class CMS:
if
p
==
'*'
:
vod
=
self
.
blank_vod
()
vod
[
'vod_play_from'
]
=
'道长在线'
vod
[
'vod_remarks'
]
=
self
.
play_url
+
detailUrl
vod
[
'vod_remarks'
]
=
detailUrl
vod
[
'vod_actor'
]
=
'没有二级,只有一级链接直接嗅探播放'
vod
[
'vod_content'
]
=
detailUrl
vod
[
'vod_play_url'
]
=
'嗅探播放$'
+
detailUrl
vod
[
'vod_play_url'
]
=
'嗅探播放$'
+
self
.
play_url
+
detailUrl
print
(
vod
)
return
vod
if
not
isinstance
(
p
,
dict
)
and
not
isinstance
(
p
,
str
)
and
not
str
(
p
).
startswith
(
'js:'
):
...
...
js/吸瓜.js
0 → 100644
浏览文件 @
1e56b979
var
rule
=
{
title
:
'
吸瓜
'
,
host
:
'
https://xgsp.tv
'
,
// homeUrl:'',
url
:
'
/list/?fyclass-fypage.html
'
,
headers
:{
'
User-Agent
'
:
'
MOBILE_UA
'
},
timeout
:
5000
,
class_parse
:
'
.wap-roll&&li;a&&Text;a&&href;(
\\
d+).html
'
,
cate_exclude
:
'
独家
'
,
limit
:
5
,
play_parse
:
true
,
lazy
:
'
js:let html=request(input);let a=html.match(/var now="(.*?)"/)[1];input=a
'
,
推荐
:
'
ul.row.row-space7.row-m-space7.tx-column-5.tx-column-m-2;li;a&&title;img&&src;.ico-right&&Text;a&&href
'
,
double
:
true
,
一级
:
'
.tx-column-m-2.mb20&&li;h2&&Text;img&&src;.ico-right&&Text;a&&href
'
,
二级
:
'
*
'
,
}
\ No newline at end of file
models/rules.db
浏览文件 @
1e56b979
无法预览此类型文件
readme.md
浏览文件 @
1e56b979
...
...
@@ -46,6 +46,8 @@
[
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/09
-
[X] 1.增加西瓜源,修复一级不支持lazy的bug
###### 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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录