Remangas: update domain, migrate to Madara (#10720)

This commit is contained in:
Vetle Ledaal 2022-02-06 01:27:35 +00:00 committed by GitHub
parent 0d9ecb9c94
commit 9cdb9966f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 24 additions and 15 deletions

View File

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

View File

@ -0,0 +1,23 @@
package eu.kanade.tachiyomi.extension.pt.remangas
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class Remangas : Madara(
"Remangas",
"https://remangas.net",
"pt-BR",
SimpleDateFormat("dd 'de' MMM 'de' yyy", Locale("pt", "BR"))
) {
override val versionId = 2
override val useNewChapterEndpoint = true
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
}

View File

@ -1,13 +0,0 @@
package eu.kanade.tachiyomi.extension.pt.remangas
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.mmrcms.MMRCMS
import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit
class Remangas : MMRCMS("Remangas", "https://remangas.top", "pt-BR") {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
}

View File

@ -363,6 +363,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("ReadAdult", "https://readadult.net", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("ReadManhua", "https://readmanhua.net", "en", overrideVersionCode = 2),
SingleLang("Readers Point", "https://readers-point.space", "en"),
SingleLang("Remangas", "https://remangas.net", "pt-BR"),
SingleLang("Remoscans", "https://remoscans.xyz", "en"),
SingleLang("Renascence Scans (Renascans)", "https://new.renascans.com", "en", className = "RenaScans", overrideVersionCode = 1),
SingleLang("Reset Scans", "https://reset-scans.com", "en", overrideVersionCode = 5),

View File

@ -56,7 +56,6 @@ class MMRCMSSources {
SourceData.Single("Komik Manga", "https://adm.komikmanga.com", "id"),
SourceData.Single("Mangazuki Raws", "https://raws.mangazuki.co", "ko", overrideVersionCode = 1),
SourceData.Single("Mangazuki", "https://mangazuki.co", "en", overrideVersionCode = 1),
SourceData.Single("Remangas", "https://remangas.top", "pt-BR", overrideVersionCode = 3),
SourceData.Single("AnimaRegia", "https://animaregia.net", "pt-BR", overrideVersionCode = 4),
SourceData.Single("MangaVadisi", "http://manga-v2.mangavadisi.org", "tr", overrideVersionCode = 1),
SourceData.Single("MangaID", "https://mangaid.click", "id", overrideVersionCode = 1),

File diff suppressed because one or more lines are too long