Fix HBrowse namespace correction

Fix HBrowse maleBody and femaleBody namespaces
This commit is contained in:
NerdNumber9 2019-08-31 00:06:58 -04:00
parent 6ff684f638
commit 052317b38a

View File

@ -168,7 +168,7 @@ class HBrowse : HttpSource(), LewdSource<HBrowseSearchMetadata, Document>, UrlIm
val mappedNs = NS_MAPPINGS[it.namespace] ?: it.namespace val mappedNs = NS_MAPPINGS[it.namespace] ?: it.namespace
var key = mappedNs var key = mappedNs
if(ALL_TAGS.containsKey(key)) key = ALL_TAGS.keys.sorted().nearest(mappedNs).first if(!ALL_TAGS.containsKey(key)) key = ALL_TAGS.keys.sorted().nearest(mappedNs).first
// Find nearest NS // Find nearest NS
val nsContents = ALL_TAGS[key] val nsContents = ALL_TAGS[key]
@ -757,7 +757,7 @@ class HBrowse : HttpSource(), LewdSource<HBrowseSearchMetadata, Document>, UrlIm
"workmate", "workmate",
"younger_sister" "younger_sister"
), ),
"malebody" to listOf( "maleBody" to listOf(
"adult", "adult",
"animal", "animal",
"animal_ears", "animal_ears",
@ -791,7 +791,7 @@ class HBrowse : HttpSource(), LewdSource<HBrowseSearchMetadata, Document>, UrlIm
"wings", "wings",
"young" "young"
), ),
"femalebody" to listOf( "femaleBody" to listOf(
"adult", "adult",
"animal_ears", "animal_ears",
"bald", "bald",