Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zzzlllmmm1
dr_py
提交
7f7b1dae
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,发现更多精彩内容 >>
提交
7f7b1dae
编写于
9月 24, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
发布新版本
上级
273ae55f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
4 deletion
+8
-4
controllers/cms.py
controllers/cms.py
+6
-3
js/version.txt
js/version.txt
+1
-1
readme.md
readme.md
+1
-0
未找到文件。
controllers/cms.py
浏览文件 @
7f7b1dae
...
...
@@ -1036,7 +1036,7 @@ class CMS:
'list'
:
[]
}
logger
.
info
(
f
'
{
self
.
getName
()
}
获取详情页耗时:
{
get_interval
(
t1
)
}
毫秒,发生错误:
{
e
}
'
)
print
(
result
)
#
print(result)
return
result
def
searchContent
(
self
,
key
,
fypage
=
1
,
show_name
=
False
):
...
...
@@ -1094,7 +1094,7 @@ class CMS:
if
is_json
:
html
=
self
.
dealJson
(
html
)
html
=
json
.
loads
(
html
)
# print(html)
if
not
is_json
and
html
.
find
(
'输入验证码'
)
>
-
1
:
cookie
=
verifyCode
(
url
,
self
.
headers
,
self
.
timeout
,
self
.
retry_count
,
self
.
ocr_api
)
# cookie = ''
...
...
@@ -1107,6 +1107,9 @@ class CMS:
r
=
requests
.
get
(
url
,
headers
=
self
.
headers
,
timeout
=
self
.
timeout
)
r
.
encoding
=
self
.
encoding
html
=
r
.
text
if
not
show_name
and
not
html
.
find
(
key
)
>
-
1
:
logger
.
info
(
'搜索结果源码未包含关键字,疑似搜索失败,正为您打印结果源码'
)
print
(
html
)
items
=
pdfa
(
html
,
p
[
0
].
replace
(
'json:'
,
''
,
1
))
# print(len(items),items)
...
...
@@ -1141,7 +1144,7 @@ class CMS:
"vod_content"
:
content
,
# 无用参数
})
except
Exception
as
e
:
print
(
e
)
print
(
f
'搜索列表解析发生错误:
{
e
}
'
)
pass
# print(videos)
except
Exception
as
e
:
...
...
js/version.txt
浏览文件 @
7f7b1dae
3.7.7
\ No newline at end of file
3.7.8
\ No newline at end of file
readme.md
浏览文件 @
7f7b1dae
...
...
@@ -51,6 +51,7 @@
-
[X] 2.二级渲染功能拆分,js单独调用
-
[X] 3.v3.7.6 新增优酷源(pluto专用)
-
[X] 4.v3.7.7 新增酷云77源(pluto专用),新增猫了个咪源,优化request等方法的post参数传递,增加rc函数
-
[X] 5.v3.7.8 增加单一搜索无匹配关键字自动打印源码,注释进入二级详情页的日志打印
###### 2022/09/22
-
[X] 1.v3.7.3修复静态文件阿里token没渲染的bug,修复数据库升级bug,优化app.py
-
[X] 2.v3.7.4修复自定义drives合并配置报错问题
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录