diff --git a/src/all/foolslide/build.gradle b/src/all/foolslide/build.gradle index c82ba1164..1ea5b4c14 100644 --- a/src/all/foolslide/build.gradle +++ b/src/all/foolslide/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: FoolSlide (multiple sources)' pkgNameSuffix = 'all.foolslide' extClass = '.FoolSlideFactory' - extVersionCode = 40 + extVersionCode = 41 libVersion = '1.2' } diff --git a/src/all/foolslide/src/eu/kanade/tachiyomi/extension/all/foolslide/FoolSlideFactory.kt b/src/all/foolslide/src/eu/kanade/tachiyomi/extension/all/foolslide/FoolSlideFactory.kt index 6145be7a7..bbe3cbea3 100644 --- a/src/all/foolslide/src/eu/kanade/tachiyomi/extension/all/foolslide/FoolSlideFactory.kt +++ b/src/all/foolslide/src/eu/kanade/tachiyomi/extension/all/foolslide/FoolSlideFactory.kt @@ -142,7 +142,10 @@ class KirishimaFansub : FoolSlide("Kirishima Fansub", "https://kirishimafansub.n class PowerMangaIT : FoolSlide("PowerManga", "https://reader.powermanga.org", "it", "") -class BaixarHentai : FoolSlide("Baixar Hentai", "https://leitura.baixarhentai.net", "pt") { +class BaixarHentai : FoolSlide("Baixar Hentai", "https://leitura.baixarhentai.net", "pt-BR") { + // Hardcode the id because the language wasn't specific. + override val id: Long = 8908032188831949972 + override fun mangaDetailsParse(document: Document): SManga { return SManga.create().apply { title = document.select("h1.title").text() diff --git a/src/all/noisemanga/build.gradle b/src/all/noisemanga/build.gradle index 1f0d28aa1..ff58e3bfe 100644 --- a/src/all/noisemanga/build.gradle +++ b/src/all/noisemanga/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: NOISE Manga' pkgNameSuffix = 'all.noisemanga' extClass = '.NoiseMangaFactory' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseManga.kt b/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseManga.kt index 169b0a5e2..f3afd97fd 100644 --- a/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseManga.kt +++ b/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseManga.kt @@ -72,7 +72,7 @@ abstract class NoiseManga(override val lang: String) : ParsedHttpSource() { override fun chapterListRequest(manga: SManga): Request = GET(baseUrl + manga.url, headers) override fun chapterListSelector(): String { - val columnSelector = if (lang == "pt") 1 else 2 + val columnSelector = if (lang == "pt-BR") 1 else 2 return "div.entry-content div table tr td:nth-child($columnSelector) a" } @@ -108,6 +108,6 @@ abstract class NoiseManga(override val lang: String) : ParsedHttpSource() { override fun latestUpdatesNextPageSelector() = throw Exception("This method should not be called!") companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" } } diff --git a/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseMangaFactory.kt b/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseMangaFactory.kt index be92b6e06..9db00dffe 100644 --- a/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseMangaFactory.kt +++ b/src/all/noisemanga/src/eu/kanade/tachiyomi/extension/all/noisemanga/NoiseMangaFactory.kt @@ -11,4 +11,8 @@ class NoiseMangaFactory : SourceFactory { } class NoiseMangaEnglish : NoiseManga("en") -class NoiseMangaPortuguese : NoiseManga("pt") + +class NoiseMangaPortuguese : NoiseManga("pt-BR") { + // Hardcode the id because the language wasn't specific. + override val id: Long = 8279458690164834090 +} diff --git a/src/all/toomics/build.gradle b/src/all/toomics/build.gradle index 81832e49c..2ae56fe7a 100644 --- a/src/all/toomics/build.gradle +++ b/src/all/toomics/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Toomics' pkgNameSuffix = 'all.toomics' extClass = '.ToomicsFactory' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' } diff --git a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsFactory.kt b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsFactory.kt index c9c54bc5b..248601772 100644 --- a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsFactory.kt +++ b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsFactory.kt @@ -27,4 +27,8 @@ class ToomicsSpanish : ToomicsGlobal("es", SimpleDateFormat("d MMM, yyyy", Local class ToomicsItalian : ToomicsGlobal("it", SimpleDateFormat("d MMM, yyyy", Locale.ITALIAN)) class ToomicsGerman : ToomicsGlobal("de", SimpleDateFormat("d. MMM yyyy", Locale.GERMAN)) class ToomicsFrench : ToomicsGlobal("fr", SimpleDateFormat("dd MMM. yyyy", Locale.ENGLISH)) -class ToomicsPortuguese : ToomicsGlobal("por", SimpleDateFormat("d 'de' MMM 'de' yyyy", Locale("pt", "BR")), "pt") + +class ToomicsPortuguese : ToomicsGlobal("por", SimpleDateFormat("d 'de' MMM 'de' yyyy", Locale("pt", "BR")), "pt-BR") { + // Hardcode the id because the language wasn't specific. + override val id: Long = 4488498756724948818 +} diff --git a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt index 5d7bce8ed..38f0ee7bb 100644 --- a/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt +++ b/src/all/toomics/src/eu/kanade/tachiyomi/extension/all/toomics/ToomicsGlobal.kt @@ -160,6 +160,6 @@ abstract class ToomicsGlobal( } companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" } } diff --git a/src/pt/animaregia/build.gradle b/src/pt/animaregia/build.gradle index 1b5095139..e8daf0616 100644 --- a/src/pt/animaregia/build.gradle +++ b/src/pt/animaregia/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: AnimaRegia' pkgNameSuffix = 'pt.animaregia' extClass = '.AnimaRegia' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/pt/animaregia/src/eu/kanade/tachiyomi/extension/pt/animaregia/AnimaRegia.kt b/src/pt/animaregia/src/eu/kanade/tachiyomi/extension/pt/animaregia/AnimaRegia.kt index ee833d5ba..017810084 100644 --- a/src/pt/animaregia/src/eu/kanade/tachiyomi/extension/pt/animaregia/AnimaRegia.kt +++ b/src/pt/animaregia/src/eu/kanade/tachiyomi/extension/pt/animaregia/AnimaRegia.kt @@ -24,11 +24,14 @@ import org.jsoup.nodes.Element class AnimaRegia : ParsedHttpSource() { + // Hardcode the id because the language wasn't specific. + override val id: Long = 4378659695320121364 + override val name = "AnimaRegia" override val baseUrl = "https://animaregia.net" - override val lang = "pt" + override val lang = "pt-BR" override val supportsLatest = true @@ -170,7 +173,7 @@ class AnimaRegia : ParsedHttpSource() { private fun Response.asJsonObject(): JsonObject = JSON_PARSER.parse(body()!!.string()).obj companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" private val JSON_PARSER by lazy { JsonParser() } } } diff --git a/src/pt/centraldemangas/build.gradle b/src/pt/centraldemangas/build.gradle index 5604a90d4..5ed8d6a73 100644 --- a/src/pt/centraldemangas/build.gradle +++ b/src/pt/centraldemangas/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Central de Mangás' pkgNameSuffix = 'pt.centraldemangas' extClass = '.CentralDeMangas' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/pt/centraldemangas/src/eu/kanade/tachiyomi/extension/pt/centraldemangas/CentralDeMangas.kt b/src/pt/centraldemangas/src/eu/kanade/tachiyomi/extension/pt/centraldemangas/CentralDeMangas.kt index 4f90b8791..cf7637a1e 100644 --- a/src/pt/centraldemangas/src/eu/kanade/tachiyomi/extension/pt/centraldemangas/CentralDeMangas.kt +++ b/src/pt/centraldemangas/src/eu/kanade/tachiyomi/extension/pt/centraldemangas/CentralDeMangas.kt @@ -27,11 +27,14 @@ import rx.Observable class CentralDeMangas : ParsedHttpSource() { + // Hardcode the id because the language wasn't specific. + override val id: Long = 711589261250964163 + override val name = "Central de Mangás" override val baseUrl = "http://centraldemangas.online" - override val lang = "pt" + override val lang = "pt-BR" override val supportsLatest = true @@ -192,7 +195,7 @@ class CentralDeMangas : ParsedHttpSource() { private fun Response.asJsonArray(): JsonArray = JSON_PARSER.parse(body()!!.string()).array companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" private const val COVER_CDN = "http://capas.centraldemangas.com.br" private const val SCRIPT_URL_BEGIN = "var urlSulfix = '" diff --git a/src/pt/goldenmangas/build.gradle b/src/pt/goldenmangas/build.gradle index da794f678..d28d03aa5 100644 --- a/src/pt/goldenmangas/build.gradle +++ b/src/pt/goldenmangas/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Golden Mangás' pkgNameSuffix = 'pt.goldenmangas' extClass = '.GoldenMangas' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/pt/goldenmangas/src/eu/kanade/tachiyomi/extension/pt/goldenmangas/GoldenMangas.kt b/src/pt/goldenmangas/src/eu/kanade/tachiyomi/extension/pt/goldenmangas/GoldenMangas.kt index f736316e8..e7d89991b 100644 --- a/src/pt/goldenmangas/src/eu/kanade/tachiyomi/extension/pt/goldenmangas/GoldenMangas.kt +++ b/src/pt/goldenmangas/src/eu/kanade/tachiyomi/extension/pt/goldenmangas/GoldenMangas.kt @@ -1,6 +1,5 @@ package eu.kanade.tachiyomi.extension.pt.goldenmangas -import android.util.Log import eu.kanade.tachiyomi.network.GET import eu.kanade.tachiyomi.source.model.FilterList import eu.kanade.tachiyomi.source.model.Page @@ -20,11 +19,14 @@ import org.jsoup.nodes.Element class GoldenMangas : ParsedHttpSource() { + // Hardcode the id because the language wasn't specific. + override val id: Long = 6858719406079923084 + override val name = "Golden Mangás" override val baseUrl = "https://goldenmanga.top" - override val lang = "pt" + override val lang = "pt-BR" override val supportsLatest = true @@ -59,7 +61,6 @@ class GoldenMangas : ParsedHttpSource() { override fun latestUpdatesSelector() = "div.col-sm-12.atualizacao > div.row" override fun latestUpdatesFromElement(element: Element): SManga = SManga.create().apply { - Log.d("golden", element.html()) val infoElement = element.select("div.col-sm-10.col-xs-8 h3").first() val thumb = element.select("a:first-child div img").first().attr("src") @@ -148,7 +149,7 @@ class GoldenMangas : ParsedHttpSource() { } companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36" - private val FLAG_REGEX = "\\((Pt-br|Scan)\\)".toRegex(RegexOption.IGNORE_CASE) + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" + private val FLAG_REGEX = "\\((Pt[-/]br|Scan)\\)".toRegex(RegexOption.IGNORE_CASE) } } diff --git a/src/pt/hipercool/build.gradle b/src/pt/hipercool/build.gradle index 793d7ec96..5a8fd058b 100644 --- a/src/pt/hipercool/build.gradle +++ b/src/pt/hipercool/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: HipercooL' pkgNameSuffix = 'pt.hipercool' extClass = '.Hipercool' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/pt/hipercool/src/eu/kanade/tachiyomi/extension/pt/hipercool/Hipercool.kt b/src/pt/hipercool/src/eu/kanade/tachiyomi/extension/pt/hipercool/Hipercool.kt index 167bf892b..018a539c0 100644 --- a/src/pt/hipercool/src/eu/kanade/tachiyomi/extension/pt/hipercool/Hipercool.kt +++ b/src/pt/hipercool/src/eu/kanade/tachiyomi/extension/pt/hipercool/Hipercool.kt @@ -29,18 +29,22 @@ import okhttp3.Response import rx.Observable class Hipercool : HttpSource() { + + // Hardcode the id because the language wasn't specific. + override val id: Long = 5898568703656160 + override val name = "HipercooL" override val baseUrl = "https://hiper.cool" - override val lang = "pt" + override val lang = "pt-BR" override val supportsLatest = true override fun headersBuilder(): Headers.Builder = Headers.Builder() - .add("User-Agent", USER_AGENT) - .add("Referer", baseUrl) - .add("X-Requested-With", "XMLHttpRequest") + .add("User-Agent", USER_AGENT) + .add("Referer", baseUrl) + .add("X-Requested-With", "XMLHttpRequest") private fun generalListMangaParse(obj: JsonObject): SManga { val book = obj["_book"].obj @@ -70,8 +74,8 @@ class Hipercool : HttpSource() { return MangasPage(emptyList(), false) val latestMangas = result - .map { latestMangaItemParse(it.obj) } - .distinctBy { it.title } + .map { latestMangaItemParse(it.obj) } + .distinctBy { it.title } return MangasPage(latestMangas, result.size() == 40) } @@ -101,8 +105,8 @@ class Hipercool : HttpSource() { return MangasPage(emptyList(), false) val searchMangas = result - .map { searchMangaItemParse(it.obj) } - .distinctBy { it.title } + .map { searchMangaItemParse(it.obj) } + .distinctBy { it.title } return MangasPage(searchMangas, result.size() == 40) } @@ -112,10 +116,10 @@ class Hipercool : HttpSource() { // Workaround to allow "Open in browser" use the real URL. override fun fetchMangaDetails(manga: SManga): Observable { return client.newCall(mangaDetailsApiRequest(manga)) - .asObservableSuccess() - .map { response -> - mangaDetailsParse(response).apply { initialized = true } - } + .asObservableSuccess() + .map { response -> + mangaDetailsParse(response).apply { initialized = true } + } } private fun mangaDetailsApiRequest(manga: SManga): Request { @@ -128,19 +132,19 @@ class Hipercool : HttpSource() { val result = response.asJsonObject() val artists = result["tags"].array - .filter { it["label"].string == "Artista" } - .flatMap { it["values"].array } - .joinToString("; ") { it["label"].string } + .filter { it["label"].string == "Artista" } + .flatMap { it["values"].array } + .joinToString("; ") { it["label"].string } val authors = result["tags"].array - .filter { it["label"].string == "Autor" } - .flatMap { it["values"].array } - .joinToString("; ") { it["label"].string } + .filter { it["label"].string == "Autor" } + .flatMap { it["values"].array } + .joinToString("; ") { it["label"].string } val tags = result["tags"].array - .filter { it["label"].string == "Tags" } - .flatMap { it["values"].array } - .joinToString(", ") { it["label"].string } + .filter { it["label"].string == "Tags" } + .flatMap { it["values"].array } + .joinToString(", ") { it["label"].string } return SManga.create().apply { title = result["title"].string @@ -162,8 +166,8 @@ class Hipercool : HttpSource() { return emptyList() return result["chapters"].array - .map { chapterListItemParse(result, it.obj) } - .reversed() + .map { chapterListItemParse(result, it.obj) } + .reversed() } private fun chapterListItemParse(book: JsonObject, obj: JsonObject): SChapter = SChapter.create().apply { @@ -208,11 +212,11 @@ class Hipercool : HttpSource() { override fun imageRequest(page: Page): Request { val newHeaders = Headers.Builder() - .apply { - add("Referer", page.url) - add("User-Agent", USER_AGENT) - } - .build() + .apply { + add("Referer", page.url) + add("User-Agent", USER_AGENT) + } + .build() return GET(page.imageUrl!!, newHeaders) } @@ -220,8 +224,8 @@ class Hipercool : HttpSource() { private fun parseChapterDate(date: String): Long { return try { SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH) - .parse(date.substringBefore("T")) - .time + .parse(date.substringBefore("T")) + .time } catch (e: ParseException) { 0L } @@ -239,7 +243,7 @@ class Hipercool : HttpSource() { companion object { private const val STATIC_URL = "https://static.hiper.cool" - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" private const val CHAPTER_REGEX = "\\/books\\/(.*)\\/(.*)\\?images=(\\d+)&revision=(\\d+)\$" diff --git a/src/pt/mangayabu/build.gradle b/src/pt/mangayabu/build.gradle index 4187e5db1..3c8ab9ecd 100644 --- a/src/pt/mangayabu/build.gradle +++ b/src/pt/mangayabu/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: MangaYabu!' pkgNameSuffix = 'pt.mangayabu' extClass = '.MangaYabu' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/pt/mangayabu/src/eu/kanade/tachiyomi/extension/pt/mangayabu/MangaYabu.kt b/src/pt/mangayabu/src/eu/kanade/tachiyomi/extension/pt/mangayabu/MangaYabu.kt index c96d2d7a4..daa4129dd 100644 --- a/src/pt/mangayabu/src/eu/kanade/tachiyomi/extension/pt/mangayabu/MangaYabu.kt +++ b/src/pt/mangayabu/src/eu/kanade/tachiyomi/extension/pt/mangayabu/MangaYabu.kt @@ -17,11 +17,14 @@ import rx.Observable class MangaYabu : ParsedHttpSource() { + // Hardcode the id because the language wasn't specific. + override val id: Long = 7152688036023311164 + override val name = "MangaYabu!" override val baseUrl = "https://mangayabu.com" - override val lang = "pt" + override val lang = "pt-BR" override val supportsLatest = true @@ -33,7 +36,7 @@ class MangaYabu : ParsedHttpSource() { override fun fetchPopularManga(page: Int): Observable { return super.fetchPopularManga(page) .map { - MangasPage(it.mangas.distinctBy { m -> m.title }, it.hasNextPage) + MangasPage(it.mangas.distinctBy { m -> m.url }, it.hasNextPage) } } @@ -52,7 +55,7 @@ class MangaYabu : ParsedHttpSource() { override fun fetchLatestUpdates(page: Int): Observable { return super.fetchLatestUpdates(page) .map { - MangasPage(it.mangas.distinctBy { m -> m.title }, it.hasNextPage) + MangasPage(it.mangas.distinctBy { m -> m.url }, it.hasNextPage) } } @@ -145,7 +148,7 @@ class MangaYabu : ParsedHttpSource() { } companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" private val SLUG_EXCEPTIONS = mapOf( "the-promised-neverland-yakusoku-no-neverland" to "yakusoku-no-neverland-the-promised-neverland" diff --git a/src/pt/saikaiscan/build.gradle b/src/pt/saikaiscan/build.gradle index 4df255aa9..d0fdcd6fb 100644 --- a/src/pt/saikaiscan/build.gradle +++ b/src/pt/saikaiscan/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Saikai Scan' pkgNameSuffix = 'pt.saikaiscan' extClass = '.SaikaiScan' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/pt/saikaiscan/src/eu/kanade/tachiyomi/extension/pt/saikaiscan/SaikaiScan.kt b/src/pt/saikaiscan/src/eu/kanade/tachiyomi/extension/pt/saikaiscan/SaikaiScan.kt index 750f6b307..228d6ce92 100644 --- a/src/pt/saikaiscan/src/eu/kanade/tachiyomi/extension/pt/saikaiscan/SaikaiScan.kt +++ b/src/pt/saikaiscan/src/eu/kanade/tachiyomi/extension/pt/saikaiscan/SaikaiScan.kt @@ -16,11 +16,14 @@ import org.jsoup.nodes.Element class SaikaiScan : ParsedHttpSource() { + // Hardcode the id because the language wasn't specific. + override val id: Long = 2686610366990303664 + override val name = "Saikai Scan" override val baseUrl = "https://saikaiscan.com.br" - override val lang = "pt" + override val lang = "pt-BR" override val supportsLatest = true @@ -133,7 +136,7 @@ class SaikaiScan : ParsedHttpSource() { private fun removeLabel(info: String) = info.substringAfter(":") companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" private val CHAPTER_REGEX = "Capítulo (\\d+)".toRegex() } } diff --git a/src/pt/yesmangas/build.gradle b/src/pt/yesmangas/build.gradle index 80863b9b2..19d08deb1 100644 --- a/src/pt/yesmangas/build.gradle +++ b/src/pt/yesmangas/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: YES Mangás' pkgNameSuffix = 'pt.yesmangas' extClass = '.YesMangas' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt b/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt index b2e3c4bc8..f0b96b57e 100644 --- a/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt +++ b/src/pt/yesmangas/src/eu/kanade/tachiyomi/extension/pt/yesmangas/YesMangas.kt @@ -15,11 +15,14 @@ import org.jsoup.nodes.Element class YesMangas : ParsedHttpSource() { + // Hardcode the id because the language wasn't specific. + override val id: Long = 7187189302580957274 + override val name = "YES Mangás" override val baseUrl = "https://yesmangas1.com" - override val lang = "pt" + override val lang = "pt-BR" override val supportsLatest = true @@ -120,7 +123,7 @@ class YesMangas : ParsedHttpSource() { private fun removeLabel(info: String) = info.substringAfter(":") companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" private val LANG_REGEX = "( )?\\((PT-)?BR\\)".toRegex() private const val SCRIPT_BEGIN = "var images = [" diff --git a/src/pt/zinnes/build.gradle b/src/pt/zinnes/build.gradle index 9d4bb3eeb..2850bb32e 100644 --- a/src/pt/zinnes/build.gradle +++ b/src/pt/zinnes/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Zinnes' pkgNameSuffix = 'pt.zinnes' extClass = '.Zinnes' - extVersionCode = 1 + extVersionCode = 2 libVersion = '1.2' } diff --git a/src/pt/zinnes/src/eu/kanade/tachiyomi/extension/pt/zinnes/Zinnes.kt b/src/pt/zinnes/src/eu/kanade/tachiyomi/extension/pt/zinnes/Zinnes.kt index 5aeec752c..f19a0752c 100644 --- a/src/pt/zinnes/src/eu/kanade/tachiyomi/extension/pt/zinnes/Zinnes.kt +++ b/src/pt/zinnes/src/eu/kanade/tachiyomi/extension/pt/zinnes/Zinnes.kt @@ -20,11 +20,14 @@ import org.jsoup.nodes.Element class Zinnes : ParsedHttpSource() { + // Hardcode the id because the language wasn't specific. + override val id: Long = 568551799323473384 + override val name = "Zinnes" override val baseUrl = "https://www.zinnes.com.br" - override val lang = "pt" + override val lang = "pt-BR" override val supportsLatest = false @@ -132,7 +135,7 @@ class Zinnes : ParsedHttpSource() { } companion object { - private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36" + private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Safari/537.36" private val ID_REGEX = "var titulo = \\{\"id\":\"(\\d+)\"".toRegex() private val FILES_REGEX = "var arquivos = \\[(.*)\\];".toRegex()