mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-12-16 09:21:16 +00:00
修复包子漫画bug (#165)
This commit is contained in:
10
baozi.js
10
baozi.js
@@ -5,7 +5,7 @@ class Baozi extends ComicSource {
|
|||||||
// 唯一标识符
|
// 唯一标识符
|
||||||
key = "baozi";
|
key = "baozi";
|
||||||
|
|
||||||
version = "1.1.0";
|
version = "1.1.1";
|
||||||
|
|
||||||
minAppVersion = "1.0.0";
|
minAppVersion = "1.0.0";
|
||||||
|
|
||||||
@@ -484,9 +484,13 @@ class Baozi extends ComicSource {
|
|||||||
}
|
}
|
||||||
// 代理后图片水印更少
|
// 代理后图片水印更少
|
||||||
let mobileImages = images.map((e) => {
|
let mobileImages = images.map((e) => {
|
||||||
const regex = /scomic\/.*/;
|
const regex = /\/[a-z]comic\/.*/;
|
||||||
const match = e.match(regex);
|
const match = e.match(regex);
|
||||||
return `https://as-rsa1-usla.baozicdn.com/w640/${match[0]}`;
|
if (match) {
|
||||||
|
return `https://as-rsa1-usla.baozicdn.com/w640${match[0]}`;
|
||||||
|
} else {
|
||||||
|
return e;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
return { images: mobileImages };
|
return { images: mobileImages };
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user