fix(nhentai): staged changes

このコミットが含まれているのは:
sinkaroid 2022-06-05 23:43:19 +07:00
コミット 26e375092a
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: A7DF4E245FDD8159
3個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -10,7 +10,7 @@ export async function getNhentai(req: any, res: any) {
if (isNaN(book)) throw Error("Value must be number");
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 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");
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 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(", "));
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 data = await scrapeContent(url);