Skip to content

Commit

Permalink
Merge pull request #528 from ClarityCafe/sr229/update-indexes
Browse files Browse the repository at this point in the history
Fully support Index eHentai (idx 38)
  • Loading branch information
sr229 authored Apr 10, 2024
2 parents 77b19ca + 0c35ddb commit f11d712
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lib/sites.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@


import { Result, ResultData } from "./response";
import { SagiriClientError } from "./errors";

Expand Down Expand Up @@ -77,7 +77,7 @@ const Fakku: SiteData = {
};

const NHentai: SiteData = {
name: "nHentai",
name: "H-Misc (nHentai)",
index: 18,
urlMatcher: /https?:\/\/nhentai.net\/g\/\d+/i,
backupUrl: (data) => `https://nhentai.net/g/${data.header.thumbnail.match(/nhentai\/(\d+)/)?.[1]}`,
Expand Down Expand Up @@ -219,6 +219,13 @@ const MangaDex: SiteData = {
}),
};

const Ehentai: SiteData = {
name: "H-Misc (eHentai)",
index: 38,
urlMatcher: /(?:https?:\/\/)?e-hentai\.org\/g\/\d+/i,
backupUrl: (data) => `https://e-hentai.org/g/${data.header.thumbnail.match(/e-hentai\/(\d+)/)?.[1]}`
}

const ArtStation: SiteData = {
name: "FurAffinity",
index: 39,
Expand Down Expand Up @@ -370,7 +377,7 @@ const sites: { [key: string]: SiteData | undefined } = {
"36": MangaUpdates,
"37": MangaDex,
"371": MangaDex,
// 38
"38": Ehentai,
"39": ArtStation,
"40": FurAffinity,
"41": Twitter,
Expand Down

0 comments on commit f11d712

Please sign in to comment.