World Romance Translation: fix cover image (#12355)

This commit is contained in:
Masga 2022-06-30 02:31:05 +07:00 committed by GitHub
parent 063ba1f4ca
commit c78c099d93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@ package eu.kanade.tachiyomi.extension.id.worldromancetranslation
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
import okhttp3.Headers
import okhttp3.OkHttpClient
import org.jsoup.nodes.Document
import java.text.SimpleDateFormat
import java.util.Locale
@ -14,4 +14,8 @@ class WorldRomanceTranslation : WPMangaReader("World Romance Translation", "http
override fun headersBuilder(): Headers.Builder {
return super.headersBuilder().add("Referer", baseUrl)
}
override fun mangaDetailsParse(document: Document) = super.mangaDetailsParse(document).apply {
thumbnail_url = document.select(seriesThumbnailSelector).attr("abs:data-lazy-src")
}
}

View File

@ -52,7 +52,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator {
SingleLang("Skull Scans", "https://www.skullscans.com", "en", overrideVersionCode = 1),
SingleLang("Tsundoku Traduções", "https://tsundoku.com.br", "pt-BR", className = "TsundokuTraducoes", overrideVersionCode = 9),
SingleLang("TurkToon", "https://turktoon.com", "tr"),
SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 8),
SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 9),
SingleLang("ARESManga", "https://aresmanga.com", "ar", pkgName = "iimanga", overrideVersionCode = 2),
)