Fix manga category/entry type
This commit is contained in:
parent
f52785cbbd
commit
ab4f08e41a
@ -133,7 +133,7 @@ fun BrowseSourceEHentaiListItem(
|
|||||||
value = withIOContext {
|
value = withIOContext {
|
||||||
when (metadata.genre) {
|
when (metadata.genre) {
|
||||||
"doujinshi" -> GenreColor.DOUJINSHI_COLOR to R.string.doujinshi
|
"doujinshi" -> GenreColor.DOUJINSHI_COLOR to R.string.doujinshi
|
||||||
"manga" -> GenreColor.MANGA_COLOR to R.string.manga
|
"manga" -> GenreColor.MANGA_COLOR to R.string.manga_type
|
||||||
"artistcg" -> GenreColor.ARTIST_CG_COLOR to R.string.artist_cg
|
"artistcg" -> GenreColor.ARTIST_CG_COLOR to R.string.artist_cg
|
||||||
"gamecg" -> GenreColor.GAME_CG_COLOR to R.string.game_cg
|
"gamecg" -> GenreColor.GAME_CG_COLOR to R.string.game_cg
|
||||||
"western" -> GenreColor.WESTERN_COLOR to R.string.western
|
"western" -> GenreColor.WESTERN_COLOR to R.string.western
|
||||||
|
@ -29,7 +29,7 @@ object MetadataUIUtil {
|
|||||||
|
|
||||||
fun getGenreAndColour(context: Context, genre: String) = when (genre) {
|
fun getGenreAndColour(context: Context, genre: String) = when (genre) {
|
||||||
"doujinshi", "Doujinshi" -> SourceTagsUtil.GenreColor.DOUJINSHI_COLOR to R.string.doujinshi
|
"doujinshi", "Doujinshi" -> SourceTagsUtil.GenreColor.DOUJINSHI_COLOR to R.string.doujinshi
|
||||||
"manga", "Japanese Manga", "Manga" -> SourceTagsUtil.GenreColor.MANGA_COLOR to R.string.manga
|
"manga", "Japanese Manga", "Manga" -> SourceTagsUtil.GenreColor.MANGA_COLOR to R.string.manga_type
|
||||||
"artistcg", "artist CG", "artist-cg", "Artist CG" -> SourceTagsUtil.GenreColor.ARTIST_CG_COLOR to R.string.artist_cg
|
"artistcg", "artist CG", "artist-cg", "Artist CG" -> SourceTagsUtil.GenreColor.ARTIST_CG_COLOR to R.string.artist_cg
|
||||||
"gamecg", "game CG", "game-cg", "Game CG" -> SourceTagsUtil.GenreColor.GAME_CG_COLOR to R.string.game_cg
|
"gamecg", "game CG", "game-cg", "Game CG" -> SourceTagsUtil.GenreColor.GAME_CG_COLOR to R.string.game_cg
|
||||||
"western" -> SourceTagsUtil.GenreColor.WESTERN_COLOR to R.string.western
|
"western" -> SourceTagsUtil.GenreColor.WESTERN_COLOR to R.string.western
|
||||||
|
@ -17,7 +17,7 @@ fun Manga.mangaType(context: Context): String {
|
|||||||
MangaType.TYPE_MANHWA -> R.string.manhwa
|
MangaType.TYPE_MANHWA -> R.string.manhwa
|
||||||
MangaType.TYPE_MANHUA -> R.string.manhua
|
MangaType.TYPE_MANHUA -> R.string.manhua
|
||||||
MangaType.TYPE_COMIC -> R.string.comic
|
MangaType.TYPE_COMIC -> R.string.comic
|
||||||
else -> R.string.manga
|
else -> R.string.manga_type
|
||||||
},
|
},
|
||||||
).lowercase(Locale.getDefault())
|
).lowercase(Locale.getDefault())
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
<string name="manhua">Manhua</string>
|
<string name="manhua">Manhua</string>
|
||||||
<string name="comic">Comic</string>
|
<string name="comic">Comic</string>
|
||||||
<string name="webtoon">Webtoon</string>
|
<string name="webtoon">Webtoon</string>
|
||||||
|
<string name="manga_type">Manga</string>
|
||||||
|
|
||||||
<!-- Captcha -->
|
<!-- Captcha -->
|
||||||
<string name="captcha_solve_failure">Captcha solve failure</string>
|
<string name="captcha_solve_failure">Captcha solve failure</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user