react-native-consumet 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/extension-registry.json.sig +1 -1
- package/lib/commonjs/index.js +18 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/types.js +6 -0
- package/lib/commonjs/models/types.js.map +1 -1
- package/lib/commonjs/providers/manga/asurascans.js +160 -96
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js +173 -91
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/index.js +1 -15
- package/lib/commonjs/providers/manga/index.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js +234 -227
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js +279 -135
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js +206 -107
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js +126 -38
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/meta/anilist.js +41 -12
- package/lib/commonjs/providers/meta/anilist.js.map +1 -1
- package/lib/commonjs/utils/index.js +19 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/manga.js +60 -0
- package/lib/commonjs/utils/manga.js.map +1 -0
- package/lib/module/extension-registry.json.sig +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/types.js +9 -0
- package/lib/module/models/types.js.map +1 -1
- package/lib/module/providers/manga/asurascans.js +161 -96
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js +174 -91
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/index.js +1 -15
- package/lib/module/providers/manga/index.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js +236 -228
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js +276 -132
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js +207 -107
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js +128 -39
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/meta/anilist.js +41 -12
- package/lib/module/providers/meta/anilist.js.map +1 -1
- package/lib/module/utils/index.js +1 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/manga.js +54 -0
- package/lib/module/utils/manga.js.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/types.d.ts +38 -5
- package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts +14 -4
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +18 -3
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +22 -5
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +15 -3
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +26 -4
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +16 -2
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/manga.d.ts +19 -0
- package/lib/typescript/commonjs/src/utils/manga.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +2 -2
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/types.d.ts +38 -5
- package/lib/typescript/module/src/models/types.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts +14 -4
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts +18 -3
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/index.d.ts +0 -14
- package/lib/typescript/module/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts +22 -5
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts +15 -3
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +26 -4
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts +16 -2
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/index.d.ts +1 -0
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/manga.d.ts +19 -0
- package/lib/typescript/module/src/utils/manga.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/extension-registry.json.sig +1 -1
- package/src/index.tsx +6 -0
- package/src/models/types.ts +38 -3
- package/src/providers/manga/asurascans.ts +200 -135
- package/src/providers/manga/flamescans.ts +221 -118
- package/src/providers/manga/index.ts +0 -14
- package/src/providers/manga/mangadex.ts +335 -282
- package/src/providers/manga/mangahere.ts +309 -156
- package/src/providers/manga/mangakakalot.ts +249 -152
- package/src/providers/manga/mangapill.ts +163 -64
- package/src/providers/meta/anilist.ts +50 -14
- package/src/utils/index.ts +1 -0
- package/src/utils/manga.ts +58 -0
- package/lib/commonjs/providers/manga/brmangas.js +0 -110
- package/lib/commonjs/providers/manga/brmangas.js.map +0 -1
- package/lib/commonjs/providers/manga/comick.js +0 -154
- package/lib/commonjs/providers/manga/comick.js.map +0 -1
- package/lib/commonjs/providers/manga/mangahost.js +0 -113
- package/lib/commonjs/providers/manga/mangahost.js.map +0 -1
- package/lib/commonjs/providers/manga/mangapark.js +0 -97
- package/lib/commonjs/providers/manga/mangapark.js.map +0 -1
- package/lib/commonjs/providers/manga/mangareader.js +0 -106
- package/lib/commonjs/providers/manga/mangareader.js.map +0 -1
- package/lib/commonjs/providers/manga/mangasee123.js +0 -161
- package/lib/commonjs/providers/manga/mangasee123.js.map +0 -1
- package/lib/commonjs/providers/manga/readmanga.js +0 -269
- package/lib/commonjs/providers/manga/readmanga.js.map +0 -1
- package/lib/commonjs/providers/manga/vyvymanga.js +0 -166
- package/lib/commonjs/providers/manga/vyvymanga.js.map +0 -1
- package/lib/module/providers/manga/brmangas.js +0 -105
- package/lib/module/providers/manga/brmangas.js.map +0 -1
- package/lib/module/providers/manga/comick.js +0 -149
- package/lib/module/providers/manga/comick.js.map +0 -1
- package/lib/module/providers/manga/mangahost.js +0 -108
- package/lib/module/providers/manga/mangahost.js.map +0 -1
- package/lib/module/providers/manga/mangapark.js +0 -92
- package/lib/module/providers/manga/mangapark.js.map +0 -1
- package/lib/module/providers/manga/mangareader.js +0 -101
- package/lib/module/providers/manga/mangareader.js.map +0 -1
- package/lib/module/providers/manga/mangasee123.js +0 -156
- package/lib/module/providers/manga/mangasee123.js.map +0 -1
- package/lib/module/providers/manga/readmanga.js +0 -264
- package/lib/module/providers/manga/readmanga.js.map +0 -1
- package/lib/module/providers/manga/vyvymanga.js +0 -161
- package/lib/module/providers/manga/vyvymanga.js.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts +0 -18
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts +0 -39
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts +0 -18
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts +0 -18
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts +0 -17
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts +0 -31
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts +0 -17
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts +0 -18
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/comick.d.ts +0 -39
- package/lib/typescript/module/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts +0 -18
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts +0 -14
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts +0 -18
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts +0 -17
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts +0 -31
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts +0 -17
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/src/providers/manga/brmangas.ts +0 -148
- package/src/providers/manga/comick.ts +0 -285
- package/src/providers/manga/mangahost.ts +0 -134
- package/src/providers/manga/mangapark.ts +0 -115
- package/src/providers/manga/mangareader.ts +0 -132
- package/src/providers/manga/mangasee123.ts +0 -187
- package/src/providers/manga/readmanga.ts +0 -380
- package/src/providers/manga/vyvymanga.ts +0 -237
|
@@ -3,12 +3,56 @@
|
|
|
3
3
|
import { load } from 'cheerio';
|
|
4
4
|
import { MangaParser, MediaStatus } from "../../models/index.js";
|
|
5
5
|
import { createProviderContext } from "../../utils/create-provider-context.js";
|
|
6
|
+
import { parseChapterNumber, sortChaptersForReading } from "../../utils/manga.js";
|
|
7
|
+
|
|
8
|
+
/** Covers and chapter pages; the CDN serves them without a Referer. */
|
|
9
|
+
const IMAGE_CDN = 'https://cdn.flamecomics.xyz/uploads/images/series';
|
|
10
|
+
|
|
11
|
+
/** A series as the site's browse and series pages describe it. */
|
|
12
|
+
|
|
13
|
+
const STATUS = {
|
|
14
|
+
'ongoing': MediaStatus.ONGOING,
|
|
15
|
+
'completed': MediaStatus.COMPLETED,
|
|
16
|
+
'hiatus': MediaStatus.HIATUS,
|
|
17
|
+
'dropped': MediaStatus.CANCELLED,
|
|
18
|
+
'cancelled': MediaStatus.CANCELLED,
|
|
19
|
+
'coming soon': MediaStatus.NOT_YET_AIRED
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** Lower-case words without punctuation, so `returners magic` finds "A Returner's Magic". */
|
|
23
|
+
const searchable = text => text.toLowerCase().replace(/['`\u2018\u2019]/g, '').replace(/[^a-z0-9\u00c0-\u1fff\u2070-\uffff]+/g, ' ').trim();
|
|
24
|
+
|
|
25
|
+
/** Plain text of the site's HTML descriptions (paragraphs become blank-line separated). */
|
|
26
|
+
const plainText = html => {
|
|
27
|
+
if (!html) return undefined;
|
|
28
|
+
const $ = load(html);
|
|
29
|
+
$('br').replaceWith('\n');
|
|
30
|
+
$('p').after('\n\n');
|
|
31
|
+
const text = $.root().text().replace(/[ \t]+\n/g, '\n').replace(/\n{3,}/g, '\n\n').trim();
|
|
32
|
+
return text || undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** The non-empty strings of a list, trimmed and without repeats. */
|
|
36
|
+
const strings = values => Array.isArray(values) ? [...new Set(values.filter(v => typeof v === 'string').map(v => v.trim()))].filter(Boolean) : [];
|
|
37
|
+
const parseJson = data => {
|
|
38
|
+
if (typeof data !== 'string') return data;
|
|
39
|
+
try {
|
|
40
|
+
return JSON.parse(data);
|
|
41
|
+
} catch {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const isoDate = unixSeconds => typeof unixSeconds === 'number' && unixSeconds > 0 ? new Date(unixSeconds * 1000).toISOString() : undefined;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Flame Comics (https://flamecomics.xyz), the scanlation group formerly at flamescans.org. The site
|
|
49
|
+
* is a Next.js app: every page's data comes as JSON from `/_next/data/<buildId>/<page>.json`.
|
|
50
|
+
*/
|
|
6
51
|
export class FlameScans extends MangaParser {
|
|
7
|
-
name = '
|
|
8
|
-
baseUrl = 'https://
|
|
9
|
-
logo = 'https://
|
|
52
|
+
name = 'FlameComics';
|
|
53
|
+
baseUrl = 'https://flamecomics.xyz';
|
|
54
|
+
logo = 'https://flamecomics.xyz/og-default.png';
|
|
10
55
|
classPath = 'MANGA.FlameScans';
|
|
11
|
-
|
|
12
56
|
/** @param ctx provider context; requests go through its axios (default: `createProviderContext()`) */
|
|
13
57
|
constructor(ctx = createProviderContext()) {
|
|
14
58
|
super();
|
|
@@ -16,103 +60,142 @@ export class FlameScans extends MangaParser {
|
|
|
16
60
|
}
|
|
17
61
|
|
|
18
62
|
/**
|
|
63
|
+
* The site has no search endpoint: its browse page lists every series, and this keeps the ones
|
|
64
|
+
* whose title has every word of the query. All matches come on page 1.
|
|
19
65
|
*
|
|
20
66
|
* @param query Search query
|
|
21
|
-
*
|
|
67
|
+
* @param page Page number (default 1)
|
|
22
68
|
*/
|
|
69
|
+
search = async (query, page = 1) => {
|
|
70
|
+
const {
|
|
71
|
+
series = []
|
|
72
|
+
} = await this.nextData('browse');
|
|
73
|
+
const words = searchable(query).split(' ').filter(Boolean);
|
|
74
|
+
const results = page > 1 ? [] : series.filter(entry => typeof entry.series_id === 'number' && entry.title?.trim()).filter(entry => words.every(word => searchable(entry.title).includes(word))).map(entry => this.toResult(entry));
|
|
75
|
+
return {
|
|
76
|
+
currentPage: page,
|
|
77
|
+
hasNextPage: false,
|
|
78
|
+
results
|
|
79
|
+
};
|
|
80
|
+
};
|
|
23
81
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
82
|
+
/** @param mangaId series id from `search` (`"101"`) */
|
|
83
|
+
fetchMangaInfo = async mangaId => {
|
|
84
|
+
const id = String(mangaId).trim();
|
|
85
|
+
if (!/^\d+$/.test(id)) throw new Error(`FlameComics: invalid series id '${mangaId}' (expected a number like '101')`);
|
|
86
|
+
const {
|
|
87
|
+
series,
|
|
88
|
+
chapters = []
|
|
89
|
+
} = await this.nextData(`series/${id}`);
|
|
90
|
+
if (!series?.title) throw new Error(`FlameComics: series ${id} not found`);
|
|
91
|
+
const info = this.toResult({
|
|
92
|
+
...series,
|
|
93
|
+
series_id: series.series_id ?? Number(id)
|
|
94
|
+
});
|
|
95
|
+
const title = info.title;
|
|
96
|
+
const altTitles = strings(series.altTitles).filter(alt => alt.toLowerCase() !== title.toLowerCase());
|
|
97
|
+
if (altTitles.length) info.altTitles = altTitles;
|
|
98
|
+
for (const [field, values] of [['genres', series.tags], ['authors', series.author], ['artists', series.artist]]) {
|
|
99
|
+
const list = strings(values);
|
|
100
|
+
if (list.length) info[field] = list;
|
|
41
101
|
}
|
|
102
|
+
// The site lists the newest chapter first.
|
|
103
|
+
info.chapters = sortChaptersForReading(chapters.map(chapter => this.toChapter(chapter, id)).reverse());
|
|
104
|
+
return info;
|
|
42
105
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
106
|
+
|
|
107
|
+
/** @param chapterId chapter id from `fetchMangaInfo` (`"101/327c2f17ef9cacd3"`: series id / chapter token) */
|
|
108
|
+
fetchChapterPages = async chapterId => {
|
|
109
|
+
const match = /^(\d+)\/([A-Za-z0-9]+)$/.exec(String(chapterId).trim());
|
|
110
|
+
if (!match) throw new Error(`FlameComics: invalid chapter id '${chapterId}' (expected '<seriesId>/<token>')`);
|
|
111
|
+
const seriesId = match[1];
|
|
112
|
+
const token = match[2];
|
|
113
|
+
const {
|
|
114
|
+
chapter
|
|
115
|
+
} = await this.nextData(`series/${seriesId}/${token}`);
|
|
116
|
+
if (!chapter) throw new Error(`FlameComics: chapter ${chapterId} not found`);
|
|
117
|
+
|
|
118
|
+
// `images` is keyed by position ("0", "1", ...); the site adds the chapter's edit time to bust caches.
|
|
119
|
+
const version = chapter.edit_time ? `?${chapter.edit_time}` : '';
|
|
120
|
+
return Object.entries(chapter.images ?? {}).sort(([a], [b]) => Number(a) - Number(b)).map(([, image]) => image?.name).filter(name => typeof name === 'string' && name.length > 0).map((name, i) => ({
|
|
121
|
+
img: `${IMAGE_CDN}/${seriesId}/${token}/${encodeURIComponent(name)}${version}`,
|
|
122
|
+
page: i + 1
|
|
123
|
+
}));
|
|
124
|
+
};
|
|
125
|
+
toResult(series) {
|
|
126
|
+
const id = String(series.series_id);
|
|
127
|
+
const result = {
|
|
128
|
+
id,
|
|
129
|
+
title: series.title.trim(),
|
|
130
|
+
url: `${this.baseUrl}/series/${id}`
|
|
47
131
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
132
|
+
// The site adds the series' edit time to cover URLs to bust caches.
|
|
133
|
+
if (series.cover) {
|
|
134
|
+
const version = series.last_edit ? `?${series.last_edit}` : '';
|
|
135
|
+
result.image = `${IMAGE_CDN}/${id}/${encodeURIComponent(series.cover)}${version}`;
|
|
136
|
+
}
|
|
137
|
+
const description = plainText(series.description);
|
|
138
|
+
if (description) result.description = description;
|
|
139
|
+
const status = series.status?.trim();
|
|
140
|
+
if (status) result.status = STATUS[status.toLowerCase()] ?? MediaStatus.UNKNOWN;
|
|
141
|
+
if (typeof series.year === 'number' && series.year > 0) result.releaseDate = series.year;
|
|
142
|
+
return result;
|
|
143
|
+
}
|
|
144
|
+
toChapter(chapter, seriesId) {
|
|
145
|
+
const id = `${chapter.series_id ?? seriesId}/${chapter.token}`;
|
|
146
|
+
const chapterNumber = parseChapterNumber(chapter.chapter);
|
|
147
|
+
// Labelled like the site: "Chapter 151 - Season 4 Start", or "Chapter 152" when it has no name.
|
|
148
|
+
const label = `Chapter ${chapterNumber ?? chapter.chapter ?? ''}`.trim();
|
|
149
|
+
const name = chapter.title?.trim();
|
|
150
|
+
const result = {
|
|
151
|
+
id,
|
|
152
|
+
title: name ? `${label} - ${name}` : label
|
|
153
|
+
};
|
|
154
|
+
if (chapterNumber !== undefined) result.chapterNumber = chapterNumber;
|
|
155
|
+
const releaseDate = isoDate(chapter.release_date);
|
|
156
|
+
if (releaseDate) result.releaseDate = releaseDate;
|
|
157
|
+
result.url = `${this.baseUrl}/series/${id}`;
|
|
158
|
+
return result;
|
|
159
|
+
}
|
|
53
160
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
mangaInfo.genres = $(seriesGenreSelector).map((i, el) => $(el).text()).get();
|
|
72
|
-
switch ($(seriesStatusSelector).text().trim()) {
|
|
73
|
-
case 'Completed':
|
|
74
|
-
mangaInfo.status = MediaStatus.COMPLETED;
|
|
75
|
-
break;
|
|
76
|
-
case 'Ongoing':
|
|
77
|
-
mangaInfo.status = MediaStatus.ONGOING;
|
|
78
|
-
break;
|
|
79
|
-
case 'Dropped':
|
|
80
|
-
mangaInfo.status = MediaStatus.CANCELLED;
|
|
81
|
-
break;
|
|
82
|
-
default:
|
|
83
|
-
mangaInfo.status = MediaStatus.UNKNOWN;
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
mangaInfo.authors = $(seriesAuthorSelector).text().replace('-', '').trim() ? $(seriesAuthorSelector).text().split(',').map(item => item.trim()) : [];
|
|
87
|
-
mangaInfo.artist = $(seriesArtistSelector).text().trim() ? $(seriesArtistSelector).text().trim() : 'N/A';
|
|
88
|
-
mangaInfo.chapters = $(seriesChaptersSelector).map((i, el) => ({
|
|
89
|
-
id: $(el).find('a').attr('href')?.split('/')[3] ?? '',
|
|
90
|
-
title: $(el).find('.lch a, .chapternum').text().trim().replace(/\n/g, ' '),
|
|
91
|
-
releasedDate: $(el).find('.chapterdate').text()
|
|
92
|
-
})).get();
|
|
93
|
-
return mangaInfo;
|
|
94
|
-
} catch (err) {
|
|
95
|
-
throw new Error(err.message);
|
|
161
|
+
/** `pageProps` of a site page (`browse`, `series/101`), from its Next.js data route. */
|
|
162
|
+
async nextData(path, retried = false) {
|
|
163
|
+
const buildIdRequest = this.buildId();
|
|
164
|
+
const buildId = await buildIdRequest;
|
|
165
|
+
const {
|
|
166
|
+
status,
|
|
167
|
+
data
|
|
168
|
+
} = await this.ctx.axios.get(`${this.baseUrl}/_next/data/${buildId}/${path}.json`, {
|
|
169
|
+
validateStatus: code => code >= 200 && code < 300 || code === 404
|
|
170
|
+
});
|
|
171
|
+
const json = parseJson(data);
|
|
172
|
+
if (status === 404) {
|
|
173
|
+
// A missing page answers `{ notFound: true }`. Otherwise a deploy replaced the build id, and every
|
|
174
|
+
// data route of the old one answers 404: look the id up again, once.
|
|
175
|
+
if (json?.notFound || retried) throw new Error(`FlameComics: /${path} not found`);
|
|
176
|
+
if (this.buildIdRequest === buildIdRequest) this.buildIdRequest = undefined;
|
|
177
|
+
return this.nextData(path, true);
|
|
96
178
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
179
|
+
if (!json?.pageProps) throw new Error(`FlameComics: no page data for /${path}`);
|
|
180
|
+
return json.pageProps;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/** The site's current Next.js build id, from the home page (looked up once, then reused). */
|
|
184
|
+
buildId() {
|
|
185
|
+
if (!this.buildIdRequest) {
|
|
186
|
+
this.buildIdRequest = this.ctx.axios.get(`${this.baseUrl}/`).then(({
|
|
101
187
|
data
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
})).get();
|
|
112
|
-
return pages;
|
|
113
|
-
} catch (err) {
|
|
114
|
-
throw new Error(err.message);
|
|
188
|
+
}) => {
|
|
189
|
+
const buildId = /"buildId"\s*:\s*"([^"]+)"/.exec(String(data))?.[1];
|
|
190
|
+
if (!buildId) throw new Error('FlameComics: no Next.js build id on the home page');
|
|
191
|
+
return buildId;
|
|
192
|
+
}).catch(err => {
|
|
193
|
+
// Look it up again next time.
|
|
194
|
+
this.buildIdRequest = undefined;
|
|
195
|
+
throw err;
|
|
196
|
+
});
|
|
115
197
|
}
|
|
116
|
-
|
|
198
|
+
return this.buildIdRequest;
|
|
199
|
+
}
|
|
117
200
|
}
|
|
118
201
|
//# sourceMappingURL=flamescans.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["load","MangaParser","MediaStatus","createProviderContext","FlameScans","name","baseUrl","logo","classPath","constructor","ctx","search","query","
|
|
1
|
+
{"version":3,"names":["load","MangaParser","MediaStatus","createProviderContext","parseChapterNumber","sortChaptersForReading","IMAGE_CDN","STATUS","ONGOING","COMPLETED","HIATUS","CANCELLED","NOT_YET_AIRED","searchable","text","toLowerCase","replace","trim","plainText","html","undefined","$","replaceWith","after","root","strings","values","Array","isArray","Set","filter","v","map","Boolean","parseJson","data","JSON","parse","isoDate","unixSeconds","Date","toISOString","FlameScans","name","baseUrl","logo","classPath","constructor","ctx","search","query","page","series","nextData","words","split","results","entry","series_id","title","every","word","includes","toResult","currentPage","hasNextPage","fetchMangaInfo","mangaId","id","String","test","Error","chapters","info","Number","altTitles","alt","length","field","tags","author","artist","list","chapter","toChapter","reverse","fetchChapterPages","chapterId","match","exec","seriesId","token","version","edit_time","Object","entries","images","sort","a","b","image","i","img","encodeURIComponent","result","url","cover","last_edit","description","status","UNKNOWN","year","releaseDate","chapterNumber","label","release_date","path","retried","buildIdRequest","buildId","axios","get","validateStatus","code","json","notFound","pageProps","then","catch","err"],"sourceRoot":"../../../../src","sources":["providers/manga/flamescans.ts"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,SAAS;AAE9B,SACEC,WAAW,EACXC,WAAW,QAON,uBAAc;AACrB,SAASC,qBAAqB,QAAQ,wCAAqC;AAC3E,SAASC,kBAAkB,EAAEC,sBAAsB,QAAQ,sBAAmB;;AAE9E;AACA,MAAMC,SAAS,GAAG,mDAAmD;;AAErE;;AAiCA,MAAMC,MAAmC,GAAG;EAC1C,S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G,IAAI,CAAC7E,OAAO,GAAG,CAAC,CACvBmF,IAAI,CAAC,CAAC;QAAE5F;MAAK,CAAC,KAAK;QAClB,MAAMoF,OAAO,GAAG,2BAA2B,CAAC9B,IAAI,CAACpB,MAAM,CAAClC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;QACnE,IAAI,CAACoF,OAAO,EAAE,MAAM,IAAIhD,KAAK,CAAC,mDAAmD,CAAC;QAClF,OAAOgD,OAAO;MAChB,CAAC,CAAC,CACDS,KAAK,CAAEC,GAAG,IAAK;QACd;QACA,IAAI,CAACX,cAAc,GAAGlG,SAAS;QAC/B,MAAM6G,GAAG;MACX,CAAC,CAAC;IACN;IACA,OAAO,IAAI,CAACX,cAAc;EAC5B;AACF","ignoreList":[]}
|
|
@@ -1,31 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { MangaDex } from "./mangadex.js";
|
|
4
|
-
import { ComicK } from "./comick.js";
|
|
5
4
|
import { MangaHere } from "./mangahere.js";
|
|
6
5
|
import { MangaKakalot } from "./mangakakalot.js";
|
|
7
|
-
import { Mangasee123 } from "./mangasee123.js";
|
|
8
|
-
import { Mangapark } from "./mangapark.js";
|
|
9
6
|
import { MangaPill } from "./mangapill.js";
|
|
10
|
-
import { MangaReader } from "./mangareader.js";
|
|
11
7
|
import { AsuraScans } from "./asurascans.js";
|
|
12
8
|
import { FlameScans } from "./flamescans.js";
|
|
13
|
-
import { MangaHost } from "./mangahost.js";
|
|
14
|
-
import { BRMangas } from "./brmangas.js";
|
|
15
|
-
import { VyvyManga } from "./vyvymanga.js";
|
|
16
9
|
export const MANGA = {
|
|
17
10
|
MangaDex,
|
|
18
|
-
ComicK,
|
|
19
11
|
MangaHere,
|
|
20
12
|
MangaKakalot,
|
|
21
|
-
Mangasee123,
|
|
22
|
-
Mangapark,
|
|
23
13
|
MangaPill,
|
|
24
|
-
MangaReader,
|
|
25
14
|
AsuraScans,
|
|
26
|
-
FlameScans
|
|
27
|
-
MangaHost,
|
|
28
|
-
BRMangas,
|
|
29
|
-
VyvyManga
|
|
15
|
+
FlameScans
|
|
30
16
|
};
|
|
31
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MangaDex","
|
|
1
|
+
{"version":3,"names":["MangaDex","MangaHere","MangaKakalot","MangaPill","AsuraScans","FlameScans","MANGA"],"sourceRoot":"../../../../src","sources":["providers/manga/index.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,eAAY;AACrC,SAASC,SAAS,QAAQ,gBAAa;AACvC,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,SAAS,QAAQ,gBAAa;AACvC,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,UAAU,QAAQ,iBAAc;AAEzC,OAAO,MAAMC,KAAK,GAAG;EACnBN,QAAQ;EACRC,SAAS;EACTC,YAAY;EACZC,SAAS;EACTC,UAAU;EACVC;AACF,CAAC","ignoreList":[]}
|