[jm] Fix gif.

This commit is contained in:
2025-08-03 16:53:12 +08:00
parent f4bc304d1b
commit f2aacf2baa
2 changed files with 4 additions and 3 deletions

View File

@@ -46,7 +46,7 @@
"name": "禁漫天堂",
"fileName": "jm.js",
"key": "jm",
"version": "1.2.0",
"version": "1.2.1",
"description": "禁漫天堂漫畫源, 不能使用時請嘗試切換分流"
},
{

5
jm.js
View File

@@ -7,7 +7,7 @@ class JM extends ComicSource {
// unique id of the source
key = "jm"
version = "1.2.0"
version = "1.2.1"
minAppVersion = "1.2.5"
@@ -767,7 +767,8 @@ class JM extends ComicSource {
}
return {
headers: this.getImgHeaders(),
modifyImage: `
// gif 图片不需要修改
modifyImage: url.endsWith(".gif") ? null : `
let modifyImage = (image) => {
const num = ${num}
let blockSize = Math.floor(image.height / num)