diff --git a/src/plugins/jmc.ts b/src/plugins/jmc.ts
index 2d9ed2e..220b966 100644
--- a/src/plugins/jmc.ts
+++ b/src/plugins/jmc.ts
@@ -46,7 +46,7 @@ class CopyManga extends Base {
description: '禁漫天堂,主打韩漫、本子类',
score: 5,
config: {
- origin: { label: '域名', value: 'https://18comic.vip' },
+ origin: { label: '域名', value: 'https://jmcomic.me' },
},
typeOptions: options.type,
regionOptions: options.region,
@@ -57,7 +57,7 @@ class CopyManga extends Base {
prepareDiscoveryFetch: Base['prepareDiscoveryFetch'] = (page, type, _region, _status, sort) => {
return {
- url: `https://18comic.vip/albums${type === Options.Default ? '' : `/${type}`}`,
+ url: `https://jmcomic.me/albums${type === Options.Default ? '' : `/${type}`}`,
body: {
o: sort === Options.Default ? 'mr' : sort,
page,
@@ -67,7 +67,7 @@ class CopyManga extends Base {
};
prepareSearchFetch: Base['prepareSearchFetch'] = (keyword, page) => {
return {
- url: 'https://18comic.vip/search/photos',
+ url: 'https://jmcomic.me/search/photos',
body: {
main_tag: 0,
search_query: keyword,
@@ -78,14 +78,14 @@ class CopyManga extends Base {
};
prepareMangaInfoFetch: Base['prepareMangaInfoFetch'] = (mangaId) => {
return {
- url: `https://18comic.vip/album/${mangaId}`,
+ url: `https://jmcomic.me/album/${mangaId}`,
headers: new Headers(this.defaultHeaders),
};
};
prepareChapterListFetch: Base['prepareChapterListFetch'] = () => {};
prepareChapterFetch: Base['prepareChapterFetch'] = (_mangaId, chapterId) => {
return {
- url: `https://18comic.vip/photo/${chapterId}`,
+ url: `https://jmcomic.me/photo/${chapterId}`,
headers: new Headers(this.defaultHeaders),
};
};
@@ -127,7 +127,7 @@ class CopyManga extends Base {
}
list.push({
- href: 'https://18comic.vip' + href,
+ href: 'https://jmcomic.me' + href,
hash: Base.combineHash(this.id, mangaId),
source: this.id,
sourceName: this.name,
@@ -190,7 +190,7 @@ class CopyManga extends Base {
}
list.push({
- href: 'https://18comic.vip' + href,
+ href: 'https://jmcomic.me' + href,
hash: Base.combineHash(this.id, mangaId),
source: this.id,
sourceName: this.name,
@@ -222,7 +222,7 @@ class CopyManga extends Base {
const [, mangaId] =
($('meta[property=og:url]').attr('content') || '').match(PATTERN_MANGA_ID) || [];
- const href = `https://18comic.vip/album/${mangaId}`;
+ const href = `https://jmcomic.me/album/${mangaId}`;
const title = $('h1#book-name').text() || '';
const updateTime = $('span[itemprop=datePublished]').last().attr('content') || '';
const img = $('div#album_photo_cover div.thumb-overlay img').first();
@@ -249,7 +249,7 @@ class CopyManga extends Base {
hash: Base.combineHash(this.id, mangaId, chapterId),
mangaId,
chapterId,
- href: `https://18comic.vip${chapterHref}`,
+ href: `https://jmcomic.me${chapterHref}`,
title: chapterTitle.replaceAll('\n', ''),
};
})
@@ -271,7 +271,7 @@ class CopyManga extends Base {
hash: Base.combineHash(this.id, mangaId, firstChapterId),
mangaId,
chapterId: firstChapterId,
- href: `https://18comic.vip${firstChapterHref}`,
+ href: `https://jmcomic.me${firstChapterHref}`,
title: '开始阅读',
});
}
@@ -345,7 +345,7 @@ class CopyManga extends Base {
title,
headers: {
...this.defaultHeaders,
- referer: 'https://18comic.vip/',
+ referer: 'https://jmcomic.me/',
accept: 'image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',