Compare commits

...

3 Commits

Author SHA1 Message Date
Dahi
5f617b94da 修复禁漫远程源fallback (#163)
在远程源res添加了try,防止目标访问不了直接抛弃而无法进入fallback
2025-10-05 16:13:15 +08:00
Dahi
f9e998bd28 更新 index.json 版本号 更新少年漫版本号 #161 禁漫版本号#163 ,删除重复的优酷 (#162)
* 更新少年漫 #161 ,删除重复的优酷

更新少年漫 #161 ,删除重复的优酷

* Update index.json
2025-10-05 16:11:11 +08:00
Dahi
ff521df20d Fix 少年ジャンプ latest app version getting (#161)
* Fix version getting

置换掉错误的版本获取逻辑,使用新的版本获取逻辑,以修复反爬

* 版本号
2025-10-05 16:10:55 +08:00
3 changed files with 19 additions and 20 deletions

View File

@@ -46,7 +46,7 @@
"name": "禁漫天堂", "name": "禁漫天堂",
"fileName": "jm.js", "fileName": "jm.js",
"key": "jm", "key": "jm",
"version": "1.3.0", "version": "1.3.1",
"description": "禁漫天堂漫畫源, 不能使用時請嘗試切換分流" "description": "禁漫天堂漫畫源, 不能使用時請嘗試切換分流"
}, },
{ {
@@ -66,7 +66,7 @@
"name": "少年ジャンプ+", "name": "少年ジャンプ+",
"fileName": "shonen_jump_plus.js", "fileName": "shonen_jump_plus.js",
"key": "shonen_jump_plus", "key": "shonen_jump_plus",
"version": "1.1.0" "version": "1.1.1"
}, },
{ {
"name": "hitomi.la", "name": "hitomi.la",
@@ -98,12 +98,6 @@
"key": "ManHuaGui", "key": "ManHuaGui",
"version": "1.1.0" "version": "1.1.0"
}, },
{
"name": "优酷漫画",
"fileName": "ykmh.js",
"key": "ykmh",
"version": "1.0.0"
},
{ {
"name": "漫蛙吧", "name": "漫蛙吧",
"fileName": "manwaba.js", "fileName": "manwaba.js",

16
jm.js
View File

@@ -7,11 +7,11 @@ class JM extends ComicSource {
// unique id of the source // unique id of the source
key = "jm" key = "jm"
version = "1.3.0" version = "1.3.1"
minAppVersion = "1.5.0" minAppVersion = "1.5.0"
static jmVersion = "2.0.6" static jmVersion = "2.0.11"
static jmPkgName = "com.example.app" static jmPkgName = "com.example.app"
@@ -127,11 +127,13 @@ class JM extends ComicSource {
let message = "" let message = ""
let servers = [] let servers = []
let domains = [] let domains = []
let res = await fetch( let res = null;
url, try {
{headers: this.baseHeaders} res = await fetch(url, { headers: this.baseHeaders });
) } catch (error) {
if (res.status === 200) { res = null;
}
if (res && res.status === 200) {
let data = this.convertData(await res.text(), domainSecret) let data = this.convertData(await res.text(), domainSecret)
let json = JSON.parse(data) let json = JSON.parse(data)
if (json["Server"]) { if (json["Server"]) {

View File

@@ -1,7 +1,7 @@
class ShonenJumpPlus extends ComicSource { class ShonenJumpPlus extends ComicSource {
name = "少年ジャンプ+"; name = "少年ジャンプ+";
key = "shonen_jump_plus"; key = "shonen_jump_plus";
version = "1.1.0"; version = "1.1.1";
minAppVersion = "1.2.1"; minAppVersion = "1.2.1";
url = url =
"https://git.nyne.dev/nyne/venera-configs/raw/branch/main/shonen_jump_plus.js"; "https://git.nyne.dev/nyne/venera-configs/raw/branch/main/shonen_jump_plus.js";
@@ -10,7 +10,7 @@ class ShonenJumpPlus extends ComicSource {
bearerToken = null; bearerToken = null;
userAccountId = null; userAccountId = null;
tokenExpiry = 0; tokenExpiry = 0;
latestVersion = "4.0.21"; latestVersion = "4.0.24";
get headers() { get headers() {
return { return {
@@ -32,10 +32,13 @@ class ShonenJumpPlus extends ComicSource {
} }
async init() { async init() {
const url = "https://apps.apple.com/jp/app/少年ジャンプ-人気漫画が読める雑誌アプリ/id875750302"; const url = "https://apps.apple.com/jp/app/id875750302";
const resp = await Network.get(url); const resp = await Network.get(url);
const match = resp.body.match(/":\[\{\\"versionDisplay\\":\\"([\d.]+)\\",\\"rele/);
if (match) { const match = resp.body.match(/whats-new__latest__version">[^<]*?([\d.]+)</);
if (match && match[1]) {
this.latestVersion = match[1]; this.latestVersion = match[1];
} }
} }