Remove Reset Scans and swatmanga.me (#13175)

* Remove Reset Scans and swatmanga.me

* escape regex
This commit is contained in:
Vetle Ledaal 2022-08-24 22:45:19 +02:00 committed by GitHub
parent 1f6f5534bf
commit 0e13a3f0be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 1 additions and 80 deletions

View File

@ -43,7 +43,7 @@ jobs:
},
{
"type": "both",
"regex": ".*(team\\s*x|tqneplus|manga\\s*disk|komiktap|gourmet\\s*scans|manga\\s*crimson|mangawow|voidscans|hikari\\s*scans|mangagegecesi|piedpiperfb|knightnoscanlations|ahstudios|mangagecesi|nartag|xxx\\s*yaoi|yaoi\\s*fan\\s*clube|luminous|dragontea|manhwaid\\.org|hunters\\s*scan|mnhaestate).*",
"regex": ".*(team\\s*x|tqneplus|manga\\s*disk|komiktap|gourmet\\s*scans|manga\\s*crimson|mangawow|voidscans|hikari\\s*scans|mangagegecesi|piedpiperfb|knightnoscanlations|ahstudios|mangagecesi|nartag|xxx\\s*yaoi|yaoi\\s*fan\\s*clube|luminous|dragontea|manhwaid\\.org|hunters\\s*scan|mnhaestate|swatmanga\\.me|reset(?:\\s*|-)scan).*",
"ignoreCase": true,
"message": "{match} will not be added back as the Scanlator team has requested it to be removed. Read #3475 for more information"
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

View File

@ -1,20 +0,0 @@
package eu.kanade.tachiyomi.extension.en.resetscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.SChapter
import org.jsoup.nodes.Element
import java.util.Locale
class ResetScans : Madara("Reset Scans", "https://reset-scans.com", "en", java.text.SimpleDateFormat("dd/MM/yyyy", Locale.US)) {
override val useNewChapterEndpoint = true
override fun chapterFromElement(element: Element): SChapter {
val chapter = super.chapterFromElement(element)
with(element) {
chapter.date_upload = select("span.chapter-release-date i").firstOrNull()?.text().let { parseChapterDate(it) }
}
return chapter
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

View File

@ -1,57 +0,0 @@
package eu.kanade.tachiyomi.extension.ar.mangaswat
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.Page
import okhttp3.Headers
import okhttp3.Request
import org.json.JSONObject
import org.jsoup.nodes.Document
import java.text.SimpleDateFormat
import java.util.Locale
class MangaSwat : MangaThemesia(
"MangaSwat",
"https://swatmanga.me",
"ar",
dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.US)
) {
override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add(
"Accept",
"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
)
.add("Accept-language", "en-US,en;q=0.9")
.add("Referer", baseUrl)
override fun imageRequest(page: Page): Request {
val newHeaders = headersBuilder()
.set("Accept", "image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8")
.set("Referer", baseUrl)
.build()
return GET(page.imageUrl!!, newHeaders)
}
override val seriesArtistSelector = "span:contains(الناشر) i"
override val seriesAuthorSelector = "span:contains(المؤلف) i"
override val seriesGenreSelector = "span:contains(التصنيف) a, .mgen a"
override val seriesTypeSelector = "span:contains(النوع) a"
override val seriesStatusSelector = "span:contains(الحالة)"
override val pageSelector = "div#readerarea img"
override fun pageListParse(document: Document): List<Page> {
var page: List<Page>? = null
val scriptContent = document.selectFirst("script:containsData(ts_reader)").data()
val removeHead = scriptContent.replace("ts_reader.run(", "").replace(");", "")
val jsonObject = JSONObject(removeHead)
val sourcesArray = jsonObject.getJSONArray("sources")
val imagesArray = sourcesArray.getJSONObject(0).getJSONArray("images")
page = List(imagesArray.length()) { i ->
Page(i, "", imagesArray[i].toString())
}
return page
}
}

View File

@ -401,7 +401,6 @@ class MadaraGenerator : ThemeSourceGenerator {
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),
SingleLang("Rh2PlusManga", "https://www.rh2plusmanga.com", "th", overrideVersionCode = 4),
SingleLang("Rio2 Manga", "https://rio2manga.com", "en"),
SingleLang("Romantik Manga", "https://romantikmanga.com", "tr"),

View File

@ -54,7 +54,6 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
SingleLang("Mangasusu", "https://mangasusu.co.in", "id", isNsfw = true, overrideVersionCode = 1),
SingleLang("MangaSwat", "https://swatmanga.co", "ar", overrideVersionCode = 7),
SingleLang("Mangayaro", "https://mangayaro.net", "id"),
SingleLang("MangaSwat", "https://swatmanga.me", "ar", overrideVersionCode = 8),
SingleLang("MangKomik", "https://mangkomik.com", "id"),
SingleLang("Mangás Chan", "https://mangaschan.com", "pt-BR", className = "MangasChan"),
SingleLang("Manhua Raw", "https://manhuaraw.com", "en"),