提交 7f7b1dae 编写于 作者: H hjdhnx

发布新版本

上级 273ae55f
......@@ -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:
......
3.7.7
\ No newline at end of file
3.7.8
\ No newline at end of file
......@@ -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.
先完成此消息的编辑!
想要评论请 注册