Add files via upload

This commit is contained in:
n3rddd 2023-09-12 20:58:03 +08:00 committed by GitHub
parent 052a60989b
commit 2ba384c88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 16 deletions

View File

@ -55,7 +55,7 @@ function pre(){
}
let rule = {};
const VERSION = 'drpy1 3.9.47beta23 20230804';
const VERSION = 'drpy1 3.9.47beta32 20230911';
/**
* 1.影魔的jinjia2引擎不支持 {{fl}}对象直接渲染 (有能力解决的话尽量解决下支持对象直接渲染字符串转义,如果加了|safe就不转义)[影魔牛逼最新的文件发现这问题已经解决了]
* Array.prototype.append = Array.prototype.push; 这种js执行后有毛病,for in 循环列表会把属性给打印出来 (这个大毛病需要重点排除一下)
@ -2424,8 +2424,8 @@ function proxy(params){
if(rule.proxy_rule&&rule.proxy_rule.trim()){
rule.proxy_rule = rule.proxy_rule.trim();
}
if(rule.proxy_rule.startsWith(':js')){
rule.proxy_rule = rule.proxy_rule.replace(':js','');
if(rule.proxy_rule.startsWith('js:')){
rule.proxy_rule = rule.proxy_rule.replace('js:','');
}
let proxyObj = {
params:params,
@ -2452,16 +2452,17 @@ function sniffer(){
*/
function isVideo(url){
let t = 0;
let is_video;
if(rule.isVideo &&rule.isVideo.trim()){
rule.isVideo = rule.isVideo.trim();
is_video = rule.isVideo.trim();
}
if(rule.isVideo.startsWith(':js')){
rule.isVideo = rule.isVideo.replace(':js','');
if(is_video.startsWith('js:')){
is_video = is_video.replace('js:','');
t = 1;
}
let isVideoObj = {
url:url,
isVideo:rule.isVideo,
isVideo:is_video,
t:t,
};
return isVideoParse(isVideoObj)

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,7 @@ function pre(){
let rule = {};
let vercode = typeof(pdfl) ==='function'?'drpy2.1':'drpy2';
const VERSION = vercode+' 3.9.47beta23 20230804';
const VERSION = vercode+' 3.9.47beta32 20230911';
/**
* 1.影魔的jinjia2引擎不支持 {{fl}}对象直接渲染 (有能力解决的话尽量解决下支持对象直接渲染字符串转义,如果加了|safe就不转义)[影魔牛逼最新的文件发现这问题已经解决了]
* Array.prototype.append = Array.prototype.push; 这种js执行后有毛病,for in 循环列表会把属性给打印出来 (这个大毛病需要重点排除一下)
@ -2302,8 +2302,8 @@ function proxy(params){
if(rule.proxy_rule&&rule.proxy_rule.trim()){
rule.proxy_rule = rule.proxy_rule.trim();
}
if(rule.proxy_rule.startsWith(':js')){
rule.proxy_rule = rule.proxy_rule.replace(':js','');
if(rule.proxy_rule.startsWith('js:')){
rule.proxy_rule = rule.proxy_rule.replace('js:','');
}
let proxyObj = {
params:params,
@ -2331,16 +2331,17 @@ function sniffer(){
*/
function isVideo(url){
let t = 0;
let is_video;
if(rule.isVideo &&rule.isVideo.trim()){
rule.isVideo = rule.isVideo.trim();
is_video = rule.isVideo.trim();
}
if(rule.isVideo.startsWith(':js')){
rule.isVideo = rule.isVideo.replace(':js','');
if(is_video.startsWith('js:')){
is_video = is_video.replace('js:','');
t = 1;
}
let isVideoObj = {
url:url,
isVideo:rule.isVideo,
isVideo:is_video,
t:t,
};
return isVideoParse(isVideoObj)

File diff suppressed because one or more lines are too long