fix(nhentai): image filename (#18519)

This commit is contained in:
caoli5288 2025-03-08 12:21:39 +08:00 committed by GitHub
parent 385759d7b1
commit 7e65ec9196
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -103,7 +103,10 @@ const parseSimpleDetail = ($ele) => {
const link = new URL($ele.attr('href'), baseUrl).href;
const thumb = $ele.children('img');
const thumbSrc = thumb.attr('data-src') || thumb.attr('src');
const highResoThumbSrc = thumbSrc.replace('thumb', '1').replace(/t(\d+)\.nhentai\.net/, 'i$1.nhentai.net');
const highResoThumbSrc = thumbSrc
.replace('thumb', '1')
.replace(/t(\d+)\.nhentai\.net/, 'i$1.nhentai.net')
.replace('.webp.webp', '.webp');
return {
title: $ele.children('.caption').text(),
link,