提交 79f8ddb0 编写于 作者: H hjdhnx

本地drpy兼容优酷

上级 8f7aeec6
无法预览此类型文件
......@@ -88,7 +88,7 @@ class CMS:
self.lsg = storage_service()
self.title = rule.get('title', '')
self.id = rule.get('id', self.title)
self.filter_url = rule.get('filter_url', '')
self.filter_url = rule.get('filter_url', '').replace('{{fl}}','{{fl|safe}}') # python jinjia2禁用自动编码
cate_exclude = rule.get('cate_exclude','')
tab_exclude = rule.get('tab_exclude','')
self.lazy = rule.get('lazy', False)
......
此差异已折叠。
......@@ -684,6 +684,9 @@ function getHome(url){
}
let tmp = url.split('//');
url = tmp[0] + '//' + tmp[1].split('/')[0];
try {
url = decodeURIComponent(url);
}catch (e) {}
return url
}
......
......@@ -60,6 +60,9 @@ function adhead(url){
// }
return urlencode(url)
}
if(typeof(play_url)==='undefined'){
var play_url = '';
}
play_url = play_url.replace('&play_url=','&type=json&play_url=');
video_lists.forEach(function (it){
let url = 'https://v.youku.com/v_show/id_' + it.videoId + '.html';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册