Change for t1 for better hit rate (#1425)

This commit is contained in:
cfouche 2025-05-11 20:12:44 +02:00 committed by GitHub
parent 6bd978eef1
commit 274350c118
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ class NHentai(delegate: HttpSource, val context: Context) :
private fun thumbnailUrlFromType(mediaId: String, page: Int, t: String) =
NHentaiSearchMetadata.typeToExtension(t)?.let {
"https://t3.nhentai.net/galleries/$mediaId/${page}t.$it"
"https://t1.nhentai.net/galleries/$mediaId/${page}t.$it"
}
override suspend fun fetchPreviewImage(page: PagePreviewInfo, cacheControl: CacheControl?): Response {

View File

@ -46,7 +46,7 @@ class NHentaiSearchMetadata : RaisedSearchMetadata() {
val cover = if (mediaId != null) {
typeToExtension(coverImageType)?.let {
"https://t3.nhentai.net/galleries/$mediaId/cover.$it"
"https://t1.nhentai.net/galleries/$mediaId/cover.$it"
}
} else {
null