diff --git a/src/utils/siteList.ts b/src/utils/siteList.ts index 4d7401f..4d14238 100644 --- a/src/utils/siteList.ts +++ b/src/utils/siteList.ts @@ -130,8 +130,8 @@ export const siteList: SiteItem[] = [ }, { name: "NETFLAV", - hostname: "netflav.com", - url: "https://netflav.com/search?type=title&keyword={{code}}", + hostname: "netflav5.com", + url: "https://netflav5.com/search?type=title&keyword={{code}}", fetcher: "parser", domQuery: { linkQuery: ".grid_cell>a", @@ -259,7 +259,7 @@ export const siteList: SiteItem[] = [ { name: "AV01", - hostname: "av01.tv", + hostname: "www.av01.tv", url: "https://www.av01.tv/search/videos?search_query={{code}}", fetcher: "parser", domQuery: { linkQuery: "div[id].well-sm>a", titleQuery: ".video-views>.pull-left" }, diff --git a/src/utils/xhr.ts b/src/utils/xhr.ts index 4b3d87c..2b07ea5 100644 --- a/src/utils/xhr.ts +++ b/src/utils/xhr.ts @@ -50,7 +50,6 @@ function serachPageParser( const matchCode = titleNodeText.match(codeRegex); const isSuccess = linkNode && titleNode && matchCode && isCaseInsensitiveEqual(matchCode[0], CODE); - if (isSuccess) { const targetLinkText = linkNode.href.replace(linkNode.hostname, siteHostName); return {