diff --git a/script/urlConfig.ts b/script/urlConfig.ts index a71ab9f..66cf2e5 100644 --- a/script/urlConfig.ts +++ b/script/urlConfig.ts @@ -23,6 +23,9 @@ const getLibMirror = async () => { }; const getDbMirrors = async () => { + if (process.env.NODE_ENV !== "production") { + return ""; + } try { const res = await fetch(`https://javdb.com/`); const htmlText = await res.text(); diff --git a/src/utils/siteList.ts b/src/utils/siteList.ts index 6295b16..9d6814e 100644 --- a/src/utils/siteList.ts +++ b/src/utils/siteList.ts @@ -63,6 +63,22 @@ export type SiteItem = SiteItem_get | SiteItem_parser | SiteItem_false; /** 在线网站列表 */ export const siteList: SiteItem[] = [ + { + name: "FANZA 動画", + hostname: "dmm.co.jp", + url: "https://www.dmm.co.jp/digital/videoa/-/detail/=/cid={{code}}/", + // url: "https://video.dmm.co.jp/av/list/?key={{code}}", + fetchType: "get", + codeFormater: (preCode) => { + const [pre, num] = preCode.split("-"); + const padNum = num.padStart(5, "0"); + if (pre.toLowerCase().startsWith("start")) { + return `1${pre.toLowerCase()}${padNum}`; + } + return `${pre}${padNum}`; + }, + domQuery: {}, + }, { name: "Jable", hostname: "jable.tv", @@ -85,18 +101,6 @@ export const siteList: SiteItem[] = [ leakQuery: ".order-first div.rounded-md a[href]:last-child", }, }, - { - name: "MISSAV_", - hostname: "missav123.com", - url: "https://missav123.com/{{code}}/", - fetchType: "get", - domQuery: { - // 标签区的第一个一般是字幕标签 - subQuery: '.space-y-2 a.text-nord13[href="https://missav123.com/chinese-subtitle"]', - // 有个「切換無碼」按钮,藏在分享按钮旁边…… - leakQuery: ".order-first div.rounded-md a[href]:last-child", - }, - }, { name: "123av", hostname: "123av.com",