fix(nhentai): staged changes
このコミットが含まれているのは:
コミット
26e375092a
|
@ -10,7 +10,7 @@ export async function getNhentai(req: any, res: any) {
|
||||||
if (isNaN(book)) throw Error("Value must be number");
|
if (isNaN(book)) throw Error("Value must be number");
|
||||||
|
|
||||||
let actualAPI;
|
let actualAPI;
|
||||||
if (!await mock(c.NHENTAI)) actualAPI = c.NHENTAI_IP;
|
if (!await mock(c.NHENTAI)) actualAPI = c.NHENTAI_IP_2;
|
||||||
|
|
||||||
const url = `${actualAPI}/api/gallery/${book}`;
|
const url = `${actualAPI}/api/gallery/${book}`;
|
||||||
const data = await scrapeContent(url);
|
const data = await scrapeContent(url);
|
||||||
|
|
|
@ -10,7 +10,7 @@ export async function relatedNhentai(req: any, res: any) {
|
||||||
if (isNaN(book)) throw Error("Value must be number");
|
if (isNaN(book)) throw Error("Value must be number");
|
||||||
|
|
||||||
let actualAPI;
|
let actualAPI;
|
||||||
if (!await mock(c.NHENTAI)) actualAPI = c.NHENTAI_IP;
|
if (!await mock(c.NHENTAI)) actualAPI = c.NHENTAI_IP_2;
|
||||||
|
|
||||||
const url = `${actualAPI}/api/gallery/${book}/related`;
|
const url = `${actualAPI}/api/gallery/${book}/related`;
|
||||||
const data = await scrapeContent(url);
|
const data = await scrapeContent(url);
|
||||||
|
|
|
@ -13,7 +13,7 @@ export async function searchNhentai(req: any, res: any) {
|
||||||
if (!sorting.includes(sort)) throw Error("Invalid short: " + sorting.join(", "));
|
if (!sorting.includes(sort)) throw Error("Invalid short: " + sorting.join(", "));
|
||||||
|
|
||||||
let actualAPI;
|
let actualAPI;
|
||||||
if (!await mock(c.NHENTAI)) actualAPI = c.NHENTAI_IP;
|
if (!await mock(c.NHENTAI)) actualAPI = c.NHENTAI_IP_2;
|
||||||
|
|
||||||
const url = `${actualAPI}/api/galleries/search?query=${key}&sort=${sort}&page=${page}`;
|
const url = `${actualAPI}/api/galleries/search?query=${key}&sort=${sort}&page=${page}`;
|
||||||
const data = await scrapeContent(url);
|
const data = await scrapeContent(url);
|
||||||
|
|
読み込み中…
新しいイシューから参照