Skip to content

Commit 014ea2c

Browse files
update.
1 parent 08a1800 commit 014ea2c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (userConfig.authorization) {
1313
}
1414

1515
async function setMangaListFilterOptions() {
16-
const url = 'https://api.mangacopy.com/api/v3/h5/filter/comic/tags';
16+
const url = 'https://www.copy20.com/api/v3/h5/filter/comic/tags';
1717
try {
1818
let result = [{
1919
label: '主题',
@@ -68,7 +68,7 @@ async function setMangaListFilterOptions() {
6868

6969
async function getMangaListByRecommend(page, pageSize) {
7070
const url =
71-
'https://api.mangacopy.com/api/v3/recs';
71+
'https://www.copy20.com/api/v3/recs';
7272
try {
7373
const rawResponse = await window.Rulia.httpRequest({
7474
url: url,
@@ -133,7 +133,7 @@ async function getMangaListByCategory(page, pageSize, filterOptions) {
133133
} else if (filterOptions.theme == 'bookshelf') {
134134
return await getMangaListByBookshelf(page, pageSize);
135135
} else {
136-
const url = 'https://api.mangacopy.com/api/v3/comics';
136+
const url = 'https://www.copy20.com/api/v3/comics';
137137
try {
138138
let theme = '';
139139
let top = '';
@@ -172,7 +172,7 @@ async function getMangaListByCategory(page, pageSize, filterOptions) {
172172

173173
async function getMangaListBySearching(page, pageSize, keyword) {
174174
const url =
175-
'https://api.mangacopy.com/api/v3/search/comic';
175+
'https://www.copy20.com/api/v3/search/comic';
176176
try {
177177
const rawResponse = await window.Rulia.httpRequest({
178178
url: url,
@@ -210,8 +210,8 @@ async function getMangaList(page, pageSize, keyword, rawFilterOptions) {
210210
async function getMangaData(dataPageUrl) {
211211
const seasonIdMatchExp = /\/comic\/(.*)/;
212212
const seasonIdMatch = dataPageUrl.match(seasonIdMatchExp);
213-
const detailUrl = 'https://api.mangacopy.com/api/v3/comic2/' + seasonIdMatch[1];
214-
const chapterListUrl = 'https://api.mangacopy.com/api/v3/comic/' + seasonIdMatch[1] + '/group/default/chapters';
213+
const detailUrl = 'https://www.copy20.com/api/v3/comic2/' + seasonIdMatch[1];
214+
const chapterListUrl = 'https://www.copy20.com/api/v3/comic/' + seasonIdMatch[1] + '/group/default/chapters';
215215
try {
216216
const detailRawResponse = await window.Rulia.httpRequest({
217217
url: detailUrl,
@@ -250,7 +250,7 @@ async function getMangaData(dataPageUrl) {
250250
async function getChapterImageList(chapterUrl) {
251251
const episodeIdMatchExp = /https?:\/\/www\.mangacopy\.com\/comic\/([a-zA-Z0-9_-]+)\/chapter\/([0-9a-f-]+)/;
252252
const episodeIdMatch = chapterUrl.match(episodeIdMatchExp);
253-
const url = 'https://api.mangacopy.com/api/v3/comic/' + episodeIdMatch[1] + '/chapter2/' + episodeIdMatch[2];
253+
const url = 'https://www.copy20.com/api/v3/comic/' + episodeIdMatch[1] + '/chapter2/' + episodeIdMatch[2];
254254
const rawResponse = await window.Rulia.httpRequest({
255255
url: url,
256256
method: 'GET',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@rulia/CopyManga",
33
"title": "拷贝漫画",
44
"description": "拷贝漫画插件.",
5-
"version": "0.0.6",
5+
"version": "0.0.7",
66
"author": "LittleStar_OuO",
77
"tags": ["Copy", "Manga", "CopyManga"],
88
"homepage": "https://github.com/LittleStar-OuO/plugin.CopyManga",

0 commit comments

Comments
 (0)