mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-12-16 09:21:16 +00:00
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"]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user