SayHentai: Fix filtering by genre (#435)
This commit is contained in:
		
							parent
							
								
									5fa08faf08
								
							
						
					
					
						commit
						1549a6ad52
					
				@ -1,7 +1,7 @@
 | 
			
		||||
ext {
 | 
			
		||||
    extName = "SayHentai"
 | 
			
		||||
    extClass = ".SayHentai"
 | 
			
		||||
    extVersionCode = 1
 | 
			
		||||
    extVersionCode = 2
 | 
			
		||||
    isNsfw = true
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -58,10 +58,7 @@ class SayHentai : ParsedHttpSource() {
 | 
			
		||||
            } else {
 | 
			
		||||
                (if (filters.isEmpty()) getFilterList() else filters).forEach {
 | 
			
		||||
                    when (it) {
 | 
			
		||||
                        is GenreList -> {
 | 
			
		||||
                            val genre = it.values[it.state]
 | 
			
		||||
                            addPathSegment(genre.path)
 | 
			
		||||
                        }
 | 
			
		||||
                        is GenreList -> addPathSegments(it.values[it.state].path)
 | 
			
		||||
                        else -> {}
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user