修复包子漫画bug (#165)

This commit is contained in:
Yursd
2025-10-08 20:01:08 +08:00
committed by GitHub
parent 5f617b94da
commit 0fe6ba47eb

View File

@@ -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 };
}, },