mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 16:37:23 +00:00
Compare commits
2 Commits
8a26cff469
...
b6448c2055
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b6448c2055 | ||
![]() |
ca2f626483 |
@@ -4,7 +4,7 @@ class CopyManga extends ComicSource {
|
|||||||
|
|
||||||
key = "copy_manga"
|
key = "copy_manga"
|
||||||
|
|
||||||
version = "1.3.7"
|
version = "1.3.8"
|
||||||
|
|
||||||
minAppVersion = "1.2.1"
|
minAppVersion = "1.2.1"
|
||||||
|
|
||||||
@@ -14,13 +14,18 @@ class CopyManga extends ComicSource {
|
|||||||
let token = this.loadData("token");
|
let token = this.loadData("token");
|
||||||
let secret = "M2FmMDg1OTAzMTEwMzJlZmUwNjYwNTUwYTA1NjNhNTM="
|
let secret = "M2FmMDg1OTAzMTEwMzJlZmUwNjYwNTUwYTA1NjNhNTM="
|
||||||
|
|
||||||
|
let now = new Date(Date.now());
|
||||||
|
let year = now.getFullYear();
|
||||||
|
let month = (now.getMonth() + 1).toString().padStart(2, '0');
|
||||||
|
let day = now.getDate().toString().padStart(2, '0');
|
||||||
|
let ts = Math.floor(now.getTime() / 1000).toString()
|
||||||
|
|
||||||
if (!token) {
|
if (!token) {
|
||||||
token = "";
|
token = "";
|
||||||
} else {
|
} else {
|
||||||
token = " " + token;
|
token = " " + token;
|
||||||
}
|
}
|
||||||
|
|
||||||
let ts = Math.floor(Date.now() / 1000).toString()
|
|
||||||
let sig = Convert.hmacString(
|
let sig = Convert.hmacString(
|
||||||
Convert.decodeBase64(secret),
|
Convert.decodeBase64(secret),
|
||||||
Convert.encodeUtf8(ts),
|
Convert.encodeUtf8(ts),
|
||||||
@@ -31,6 +36,7 @@ class CopyManga extends ComicSource {
|
|||||||
"User-Agent": "COPY/3.0.0",
|
"User-Agent": "COPY/3.0.0",
|
||||||
"source": "copyApp",
|
"source": "copyApp",
|
||||||
"deviceinfo": this.deviceinfo,
|
"deviceinfo": this.deviceinfo,
|
||||||
|
"dt": `${year}.${month}.${day}`,
|
||||||
"platform": "3",
|
"platform": "3",
|
||||||
"referer": `com.copymanga.app-3.0.0`,
|
"referer": `com.copymanga.app-3.0.0`,
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
@@ -602,7 +608,7 @@ class CopyManga extends ComicSource {
|
|||||||
let getChapters = async (id, groups) => {
|
let getChapters = async (id, groups) => {
|
||||||
let fetchSingle = async (id, path) => {
|
let fetchSingle = async (id, path) => {
|
||||||
let res = await Network.get(
|
let res = await Network.get(
|
||||||
`${this.apiUrl}/api/v3/comic/${id}/group/${path}/chapters?limit=500&offset=0&in_mainland=true&request_id=`,
|
`${this.apiUrl}/api/v3/comic/${id}/group/${path}/chapters?limit=100&offset=0&in_mainland=true&request_id=`,
|
||||||
this.headers
|
this.headers
|
||||||
);
|
);
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
@@ -616,11 +622,11 @@ class CopyManga extends ComicSource {
|
|||||||
eps.set(id, title);
|
eps.set(id, title);
|
||||||
});
|
});
|
||||||
let maxChapter = data.results.total;
|
let maxChapter = data.results.total;
|
||||||
if (maxChapter > 500) {
|
if (maxChapter > 100) {
|
||||||
let offset = 500;
|
let offset = 100;
|
||||||
while (offset < maxChapter) {
|
while (offset < maxChapter) {
|
||||||
res = await Network.get(
|
res = await Network.get(
|
||||||
`${this.apiUrl}/api/v3/comic/${id}/group/${path}/chapters?limit=500&offset=${offset}`,
|
`${this.apiUrl}/api/v3/comic/${id}/group/${path}/chapters?limit=100&offset=${offset}`,
|
||||||
this.headers
|
this.headers
|
||||||
);
|
);
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
@@ -632,7 +638,7 @@ class CopyManga extends ComicSource {
|
|||||||
let id = e.uuid;
|
let id = e.uuid;
|
||||||
eps.set(id, title)
|
eps.set(id, title)
|
||||||
});
|
});
|
||||||
offset += 500;
|
offset += 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return eps;
|
return eps;
|
||||||
|
@@ -7,7 +7,7 @@ class Ehentai extends ComicSource {
|
|||||||
// unique id of the source
|
// unique id of the source
|
||||||
key = "ehentai"
|
key = "ehentai"
|
||||||
|
|
||||||
version = "1.1.3"
|
version = "1.1.4"
|
||||||
|
|
||||||
minAppVersion = "1.0.0"
|
minAppVersion = "1.0.0"
|
||||||
|
|
||||||
@@ -1182,7 +1182,7 @@ class Ehentai extends ComicSource {
|
|||||||
if(url.includes('?')) {
|
if(url.includes('?')) {
|
||||||
url = url.split('?')[0]
|
url = url.split('?')[0]
|
||||||
}
|
}
|
||||||
let reg = RegExp("https?://(e-|ex)hentai.org/g/(\\d+)/(\\w+)/")
|
let reg = RegExp("https?://(e-|ex)hentai.org/g/(\\d+)/(\\w+)/?$")
|
||||||
let match = reg.exec(url)
|
let match = reg.exec(url)
|
||||||
if(match) {
|
if(match) {
|
||||||
return `${this.baseUrl}/g/${match[2]}/${match[3]}/`
|
return `${this.baseUrl}/g/${match[2]}/${match[3]}/`
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
"name": "拷贝漫画",
|
"name": "拷贝漫画",
|
||||||
"fileName": "copy_manga.js",
|
"fileName": "copy_manga.js",
|
||||||
"key": "copy_manga",
|
"key": "copy_manga",
|
||||||
"version": "1.3.7"
|
"version": "1.3.8"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Komiic",
|
"name": "Komiic",
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
"name": "nhentai",
|
"name": "nhentai",
|
||||||
"fileName": "nhentai.js",
|
"fileName": "nhentai.js",
|
||||||
"key": "nhentai",
|
"key": "nhentai",
|
||||||
"version": "1.0.5"
|
"version": "1.0.6"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "紳士漫畫",
|
"name": "紳士漫畫",
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
"name": "ehentai",
|
"name": "ehentai",
|
||||||
"fileName": "ehentai.js",
|
"fileName": "ehentai.js",
|
||||||
"key": "ehentai",
|
"key": "ehentai",
|
||||||
"version": "1.1.3"
|
"version": "1.1.4"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "禁漫天堂",
|
"name": "禁漫天堂",
|
||||||
|
@@ -7,7 +7,7 @@ class Nhentai extends ComicSource {
|
|||||||
// unique id of the source
|
// unique id of the source
|
||||||
key = "nhentai"
|
key = "nhentai"
|
||||||
|
|
||||||
version = "1.0.5"
|
version = "1.0.6"
|
||||||
|
|
||||||
minAppVersion = "1.0.0"
|
minAppVersion = "1.0.0"
|
||||||
|
|
||||||
@@ -523,7 +523,7 @@ class Nhentai extends ComicSource {
|
|||||||
'nhentai.net',
|
'nhentai.net',
|
||||||
],
|
],
|
||||||
linkToId: (url) => {
|
linkToId: (url) => {
|
||||||
let regex = /\/g\/(\d+)\//g
|
let regex = /\/g\/(\d+)\/?$/g
|
||||||
let match = regex.exec(url)
|
let match = regex.exec(url)
|
||||||
if(match) {
|
if(match) {
|
||||||
return match[1]
|
return match[1]
|
||||||
|
Reference in New Issue
Block a user