mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-12-16 17:31:16 +00:00
Compare commits
3 Commits
603fefe9be
...
5f617b94da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f617b94da | ||
|
|
f9e998bd28 | ||
|
|
ff521df20d |
10
index.json
10
index.json
@@ -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
16
jm.js
@@ -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"]) {
|
||||||
|
|||||||
@@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user