fix: scanlator | language selection

This commit is contained in:
rebelonion 2024-05-01 21:08:33 -05:00
parent deda67a070
commit a3e1cc45b3
3 changed files with 11 additions and 2 deletions

View file

@ -54,6 +54,11 @@ abstract class BaseParser {
* Isn't necessary to override, but recommended, if you want to improve auto search results
* **/
open suspend fun autoSearch(mediaObj: Media): ShowResponse? {
(this as? DynamicMangaParser)?.let { ext ->
mediaObj.selected?.langIndex?.let {
ext.sourceLanguage = it
}
}
var response: ShowResponse? = loadSavedShowResponse(mediaObj.id)
if (response != null && this !is OfflineMangaParser && this !is OfflineAnimeParser) {
saveShowResponse(mediaObj.id, response, true)