fix: A bug fix ,fix nhentai image link error (#18805)

* fix nhentai image link error

* bring yml back

* fix: add an empty line at the end

---------

Co-authored-by: Joe <joegodwanggod@gamil.com>
This commit is contained in:
User
2025-04-09 20:41:28 +08:00
committed by GitHub
co-authored by Joe
parent f11f10ca6b
commit eb5e4c609b
+3 -1
View File
@@ -133,7 +133,9 @@ const getDetail = async (simple) => {
.toArray()
.map((ele) => new URL($(ele).attr('data-src'), baseUrl).href)
.map((src) => src.replace(/(.+)(\d+)t\.(.+)/, (_, p1, p2, p3) => `${p1}${p2}.${p3}`)) // thumb to high-quality
.map((src) => src.replace(/t(\d+)\.nhentai\.net/, 'i$1.nhentai.net'));
.map((src) => src.replace(/t(\d+)\.nhentai\.net/, 'i$1.nhentai.net'))
.map((src) => src.replace(/\.(jpg|png|gif)\.webp$/, '.$1')) // 移除重複的.webp後綴
.map((src) => src.replace(/\.webp\.webp$/, '.webp')); // 處理.webp.webp的情況
return {
...simple,