Fix WRT image could not be found (#12197)

* fix image could not load

* increment `overrideVersionCode`

* no need interceptor
This commit is contained in:
Masga 2022-06-15 21:11:28 +07:00 committed by GitHub
parent 4041d08c14
commit 8c5b5522a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,8 @@
package eu.kanade.tachiyomi.extension.id.worldromancetranslation package eu.kanade.tachiyomi.extension.id.worldromancetranslation
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
import okhttp3.Headers
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
@ -8,4 +10,8 @@ class WorldRomanceTranslation : WPMangaReader("World Romance Translation", "http
override val projectPageString = "/project-wrt" override val projectPageString = "/project-wrt"
override val hasProjectPage = true override val hasProjectPage = true
override fun headersBuilder(): Headers.Builder {
return super.headersBuilder().add("Referer", baseUrl)
}
} }

View File

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