[Hitomi.la] Small fixes (#1754)

Co-authored-by: Draken <dragonx943@users.noreply.github.com>
master
Draken 12 months ago committed by GitHub
parent 6d404c6997
commit 8f61beadb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -558,7 +558,7 @@ internal class HitomiLaParser(context: MangaLoaderContext) : LegacyMangaParser(c
val imageId = imageIdFromHash(hash) val imageId = imageIdFromHash(hash)
val subDomain = 'a' + subdomainOffset(imageId) val subDomain = 'a' + subdomainOffset(imageId)
"https://${subDomain}tn.$cdnDomain/avifbigtn/${thumbPathFromHash(hash)}/$hash.avif" "https://${subDomain}tn.$cdnDomain/webpbigtn/${thumbPathFromHash(hash)}/$hash.webp"
}, },
authors = setOfNotNull(author), authors = setOfNotNull(author),
publicUrl = json.getString("galleryurl").toAbsoluteUrl(domain), publicUrl = json.getString("galleryurl").toAbsoluteUrl(domain),
@ -663,7 +663,7 @@ internal class HitomiLaParser(context: MangaLoaderContext) : LegacyMangaParser(c
MangaPage( MangaPage(
id = generateUid(hash), id = generateUid(hash),
url = "https://a${subDomain}.$cdnDomain/$commonId$imageId/$hash.avif", url = "https://a${subDomain}.$cdnDomain/$commonId$imageId/$hash.avif",
preview = "https://${thumbSubdomain}tn.$cdnDomain/webpsmalltn/${thumbPathFromHash(hash)}/$hash.webp", preview = "https://${thumbSubdomain}tn.$cdnDomain/webpsmallsmalltn/${thumbPathFromHash(hash)}/$hash.webp",
source = source, source = source,
) )
} }

Loading…
Cancel
Save