Kemono fix search pages (#7279)
* Kemono fix search pages * Update build.gradle.kts * Update Kemono.kt
This commit is contained in:
		
							parent
							
								
									25bac4f262
								
							
						
					
					
						commit
						7722a6e458
					
				| @ -2,4 +2,4 @@ plugins { | ||||
|     id("lib-multisrc") | ||||
| } | ||||
| 
 | ||||
| baseVersionCode = 16 | ||||
| baseVersionCode = 17 | ||||
|  | ||||
| @ -107,7 +107,7 @@ open class Kemono( | ||||
|         } | ||||
| 
 | ||||
|         var mangas = mangasCache | ||||
|         if (page == 1) { | ||||
|         if (page == 1 || mangasCache.isEmpty()) { | ||||
|             var favourites: List<KemonoFavouritesDto> = emptyList() | ||||
|             if (fav != null) { | ||||
|                 val favores = client.newCall(GET("$baseUrl/$apiPath/account/favorites", headers)).execute() | ||||
| @ -132,7 +132,7 @@ open class Kemono( | ||||
| 
 | ||||
|                 includeType && !excludeType && isFavourited && | ||||
|                     regularSearch | ||||
|             }.also { mangasCache = mangas } | ||||
|             }.also { mangasCache = it } | ||||
|         } | ||||
| 
 | ||||
|         val sorted = when (sort.first) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 spicemace
						spicemace