Skip to content

Commit

Permalink
Capitalize MangaLib genres
Browse files Browse the repository at this point in the history
  • Loading branch information
Koitharu committed May 21, 2020
1 parent d99450c commit 3bd7b54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ open class MangaLibRepository(loaderContext: MangaLoaderContext) :
tags = info.getElementsMatchingOwnText("Жанры")?.firstOrNull()
?.nextElementSibling()?.select("a")?.mapNotNull { a ->
MangaTag(
title = a.text(),
title = a.text().capitalize(),
key = a.attr("href").substringAfterLast('='),
source = source
)
Expand Down Expand Up @@ -182,7 +182,7 @@ open class MangaLibRepository(loaderContext: MangaLoaderContext) :
result += MangaTag(
source = source,
key = x.getInt("id").toString(),
title = x.getString("name")
title = x.getString("name").capitalize()
)
}
return result
Expand Down

0 comments on commit 3bd7b54

Please sign in to comment.