Capitalize MangaLib genres
This commit is contained in:
@@ -128,7 +128,7 @@ open class MangaLibRepository(loaderContext: MangaLoaderContext) :
|
|||||||
tags = info.getElementsMatchingOwnText("Жанры")?.firstOrNull()
|
tags = info.getElementsMatchingOwnText("Жанры")?.firstOrNull()
|
||||||
?.nextElementSibling()?.select("a")?.mapNotNull { a ->
|
?.nextElementSibling()?.select("a")?.mapNotNull { a ->
|
||||||
MangaTag(
|
MangaTag(
|
||||||
title = a.text(),
|
title = a.text().capitalize(),
|
||||||
key = a.attr("href").substringAfterLast('='),
|
key = a.attr("href").substringAfterLast('='),
|
||||||
source = source
|
source = source
|
||||||
)
|
)
|
||||||
@@ -182,7 +182,7 @@ open class MangaLibRepository(loaderContext: MangaLoaderContext) :
|
|||||||
result += MangaTag(
|
result += MangaTag(
|
||||||
source = source,
|
source = source,
|
||||||
key = x.getInt("id").toString(),
|
key = x.getInt("id").toString(),
|
||||||
title = x.getString("name")
|
title = x.getString("name").capitalize()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user