Change for t1 for better hit rate (#1425)
This commit is contained in:
parent
6bd978eef1
commit
274350c118
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user