Re-add MangaSwat (#14607)
This commit is contained in:
parent
3b45323695
commit
474ed09cc9
|
@ -43,7 +43,7 @@ jobs:
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "both",
|
"type": "both",
|
||||||
"regex": ".*(team\\s*x|tqneplus|komiktap|gourmet\\s*scans|mangawow|hikari\\s*scans|mangagegecesi|knightnoscanlations|ahstudios|mangagecesi|nartag|xxx\\s*yaoi|yaoi\\s*fan\\s*clube|luminous|dragontea|manhwaid\\.org|hunters\\s*scan|mnhaestate|swat\\s*manga|manga\\s*swat|reset(?:\\s*|-)scan|manga-flix\\.com|astra\\s*scans|manganoon|manga(?:-|\\s*)pro|coven\\s*scans?|shinobiscans).*",
|
"regex": ".*(team\\s*x|tqneplus|komiktap|gourmet\\s*scans|mangawow|hikari\\s*scans|mangagegecesi|knightnoscanlations|ahstudios|mangagecesi|nartag|xxx\\s*yaoi|yaoi\\s*fan\\s*clube|luminous|dragontea|manhwaid\\.org|hunters\\s*scan|mnhaestate|reset(?:\\s*|-)scan|manga-flix\\.com|astra\\s*scans|manganoon|manga(?:-|\\s*)pro|coven\\s*scans?|shinobiscans).*",
|
||||||
"ignoreCase": true,
|
"ignoreCase": true,
|
||||||
"message": "{match} will not be added back as the scanlator team has requested it to be removed. Read #3475 for more information."
|
"message": "{match} will not be added back as the scanlator team has requested it to be removed. Read #3475 for more information."
|
||||||
},
|
},
|
||||||
|
|
|
@ -38,7 +38,6 @@
|
||||||
- Mangagecesi https://github.com/tachiyomiorg/tachiyomi-extensions/issues/5367
|
- Mangagecesi https://github.com/tachiyomiorg/tachiyomi-extensions/issues/5367
|
||||||
- Manganoon https://github.com/tachiyomiorg/tachiyomi-extensions/issues/13866
|
- Manganoon https://github.com/tachiyomiorg/tachiyomi-extensions/issues/13866
|
||||||
- MangaPro https://github.com/tachiyomiorg/tachiyomi-extensions/issues/13989
|
- MangaPro https://github.com/tachiyomiorg/tachiyomi-extensions/issues/13989
|
||||||
- MangaSwat https://github.com/tachiyomiorg/tachiyomi-extensions/issues/13171
|
|
||||||
- Mangawow https://github.com/tachiyomiorg/tachiyomi-extensions/issues/5367
|
- Mangawow https://github.com/tachiyomiorg/tachiyomi-extensions/issues/5367
|
||||||
- Manhwaid.org https://github.com/tachiyomiorg/tachiyomi-extensions/issues/10751
|
- Manhwaid.org https://github.com/tachiyomiorg/tachiyomi-extensions/issues/10751
|
||||||
- NarTag https://github.com/tachiyomiorg/tachiyomi-extensions/issues/8038
|
- NarTag https://github.com/tachiyomiorg/tachiyomi-extensions/issues/8038
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
Binary file not shown.
After Width: | Height: | Size: 131 KiB |
|
@ -0,0 +1,57 @@
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
|
@ -63,6 +63,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("MangaTale", "https://mangatale.co", "id"),
|
SingleLang("MangaTale", "https://mangatale.co", "id"),
|
||||||
SingleLang("MangaWT", "https://mangawt.com", "tr", overrideVersionCode = 5),
|
SingleLang("MangaWT", "https://mangawt.com", "tr", overrideVersionCode = 5),
|
||||||
SingleLang("Mangayaro", "https://mangayaro.net", "id"),
|
SingleLang("Mangayaro", "https://mangayaro.net", "id"),
|
||||||
|
SingleLang("MangaSwat", "https://swatmanga.me", "ar", overrideVersionCode = 6),
|
||||||
SingleLang("MangKomik", "https://mangkomik.net", "id", overrideVersionCode = 1),
|
SingleLang("MangKomik", "https://mangkomik.net", "id", overrideVersionCode = 1),
|
||||||
SingleLang("Mangás Chan", "https://mangaschan.com", "pt-BR", className = "MangasChan"),
|
SingleLang("Mangás Chan", "https://mangaschan.com", "pt-BR", className = "MangasChan"),
|
||||||
SingleLang("Manhwa Freak", "https://manhwafreak.com", "en", overrideVersionCode = 1),
|
SingleLang("Manhwa Freak", "https://manhwafreak.com", "en", overrideVersionCode = 1),
|
||||||
|
|
Loading…
Reference in New Issue