Skip to content

Commit

Permalink
sources: fix EH gallery parsing (fix #3390)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Feb 8, 2025
1 parent 15c5ee0 commit 18f54d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sites/E-Hentai/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ export const source: ISource = {
if (matches.length < 1) {
matches = Grabber.regexMatches('<div class="gdtl"[^>]*><a href="(?<page_url>[^"]+)"><img[^>]*src="(?<preview_url>[^"]+)"[^>]*></a></div>', src);
}
if (matches.length < 1) {
matches = Grabber.regexMatches('<a href="(?<page_url>[^"]+/s/[^"]+)"><div title="Page [0-9]+: (?<filename>[^"]+)" style="(?<div_style>[^"]+)"></div></a>', src);
}

for (const match of matches) {
if ("div_style" in match) {
const styles = cssToObject(match["div_style"]);
Expand Down

0 comments on commit 18f54d6

Please sign in to comment.