mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Language not being used
This commit is contained in:
parent
6bf37b36c3
commit
0846e48d6a
2 changed files with 4 additions and 3 deletions
|
@ -220,6 +220,7 @@ class LocalSource(private val context: Context) : CatalogueSource, UnmeteredSour
|
|||
xml.decodeFromReader<ComicInfo>(it)
|
||||
}
|
||||
|
||||
comicInfo.language?.let { langMap[manga.url] = it.value }
|
||||
manga.copyFromComicInfo(comicInfo)
|
||||
}
|
||||
|
||||
|
@ -243,7 +244,7 @@ class LocalSource(private val context: Context) : CatalogueSource, UnmeteredSour
|
|||
|
||||
lang?.let { langMap[manga.url] = it }
|
||||
val file = directory.createFile(COMIC_INFO_FILE)!!
|
||||
file.writeText(xml.encodeToString(ComicInfo.serializer(), manga.toComicInfo()))
|
||||
file.writeText(xml.encodeToString(ComicInfo.serializer(), manga.toComicInfo(lang)))
|
||||
}
|
||||
|
||||
@Serializable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue