提交 be9ef37c 编写于 作者: H hjdhnx

js0播放问题修复

上级 24f27b18
无法预览此类型文件
......@@ -1365,7 +1365,7 @@ class CMS:
if type(self.lazy) == JsObjectWrapper:
logger.info(f'lazy非纯文本免嗅失败耗时:{get_interval(t1)}毫秒,播放地址:{play_url}')
elif not str(self.lazy).startswith('js:'):
elif str(self.lazy).startswith('py:'):
pycode = runPy(self.lazy)
if pycode:
# print(pycode)
......@@ -1378,7 +1378,7 @@ class CMS:
if isinstance(lazy_url,str) and lazy_url.startswith('http'):
play_url = lazy_url
else:
jscode = str(self.lazy).split('js:')[1]
jscode = str(self.lazy).strip().replace('js:', '', 1) if str(self.lazy).startswith('js:') else js_code
jsp = jsoup(self.url)
# jscode = f'var input={play_url};{jscode}'
# print(jscode)
......
3.7.5beta9
\ No newline at end of file
3.7.4
\ No newline at end of file
......@@ -35,7 +35,7 @@ var rule = {
class_url:'1&2&3',
play_parse:true,
play_json:0,
lazy:"let bookId=input.match(/play\\/(.*?)\\//)[1];let chapterId=input.match(/.*\\/(.*?)\\.html/)[1];let url='https://app.tingxiaoshuo.cc/listen/apptingchina/AppGetChapterUrl2022?uid=09e0bbefd378830f9615a98f239aceab&chapterId='+chapterId+'&bookId='+bookId;let res=request(url,{headers:{'User-Agent':PC_UA}});res=JSON.parse(res);input=res.src;log(input);",
lazy:"js:let bookId=input.match(/play\\/(.*?)\\//)[1];let chapterId=input.match(/.*\\/(.*?)\\.html/)[1];let url='https://app.tingxiaoshuo.cc/listen/apptingchina/AppGetChapterUrl2022?uid=09e0bbefd378830f9615a98f239aceab&chapterId='+chapterId+'&bookId='+bookId;log(url);let res=request(url,{headers:{'User-Agent':PC_UA}});res=JSON.parse(res);input=res.src;log(input);",
limit:6,
double:true,
推荐:'*',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册