提交 d7efb3c5 编写于 作者: H hjdhnx

修复缓存js播放免嗅问题

上级 be1f7c38
......@@ -56,7 +56,7 @@ py_ctx = {
# print(getCryptoJS())
class CMS:
def __init__(self, rule, db=None, RuleClass=None, PlayParse=None,new_conf=None):
def __init__(self, rule, db=None, RuleClass=None, PlayParse=None,new_conf=None,ext=''):
if new_conf is None:
new_conf = {}
self.lsg = storage_service()
......@@ -104,7 +104,7 @@ class CMS:
# print(play_url)
if self.play_parse:
# self.play_url = play_url + self.vod + '?play_url='
self.play_url = f'{play_url}{self.vod}?rule={self.id}&play_url='
self.play_url = f'{play_url}{self.vod}?rule={self.id}&ext={ext}&play_url='
# logger.info(f'cms重定向链接:{self.play_url}')
else:
self.play_url = ''
......
......@@ -178,7 +178,7 @@ def vod_home():
logger.info(f'js装载耗时:{get_interval(t2)}毫秒')
# print(ruleDict)
# print(rule)
cms = CMS(ruleDict,db,RuleClass,PlayParse,cfg)
cms = CMS(ruleDict,db,RuleClass,PlayParse,cfg,ext)
wd = getParmas('wd')
quick = getParmas('quick')
play = getParmas('play') # 类型为4的时候点击播放会带上来
......
3.6.14
\ No newline at end of file
3.6.15
\ No newline at end of file
......@@ -48,6 +48,7 @@
[获取本地设备信息](https://m.jb51.net/article/140716.htm)
###### 2022/09/19
- [X] 1.增加20多个缓存源,需要在custom.conf文件自定义添加
- [X] 2.修复缓存js播放免嗅问题
###### 2022/09/17
- [X] 1.pluto1.5.1最新beta版支持drpy首页推荐点击跳drpy内部聚搜(原理同T4)
- [X] 2.pluto1.5.1最新beta版支持searchable为2的源忽略参与聚搜,正常单一搜索
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册