Update domain for some sources (#18951)

* update domain src

* update domain madara
This commit is contained in:
Vetle Ledaal 2023-11-15 03:12:42 +00:00 committed by GitHub
parent b5f0a77f13
commit 6393c1caf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 124 additions and 51 deletions

View File

@ -11,9 +11,14 @@ import uy.kohesive.injekt.api.get
import java.text.SimpleDateFormat
import java.util.Locale
class EmpireWebtoon : Madara("Empire Webtoon", "https://webtoonempire.com", "ar", SimpleDateFormat("yyyy MMMMM dd", Locale("ar"))) {
class EmpireWebtoon : Madara(
"Empire Webtoon",
"https://webtoonsempireron.com",
"ar",
SimpleDateFormat("d MMMM، yyyy", Locale("ar")),
) {
private val defaultBaseUrl = "https://webtoonempire.com"
private val defaultBaseUrl = "https://webtoonsempireron.com"
override val baseUrl by lazy { getPrefBaseUrl() }
@ -21,6 +26,12 @@ class EmpireWebtoon : Madara("Empire Webtoon", "https://webtoonempire.com", "ar"
Injekt.get<Application>().getSharedPreferences("source_$id", 0x0000)
}
override val mangaSubString = "webtoon"
override val useNewChapterEndpoint = false
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
companion object {
private const val RESTART_TACHIYOMI = "Restart Tachiyomi to apply new setting."
private const val BASE_URL_PREF_TITLE = "Override BaseUrl"

View File

@ -1,14 +1,32 @@
package eu.kanade.tachiyomi.extension.tr.evascans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.Page
import org.jsoup.nodes.Document
import java.text.SimpleDateFormat
import java.util.Locale
class EvaScans : Madara(
"EvaScans",
"https://evascans.com",
"ManWe",
"https://manwe.pro",
"tr",
dateFormat = SimpleDateFormat("MMM d, yyy", Locale("tr")),
) {
override val useNewChapterEndpoint = false
override val id = 5223802501310383833
override val useNewChapterEndpoint = true
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
override fun pageListParse(document: Document): List<Page> {
val pageList = super.pageListParse(document)
if (
pageList.isEmpty() &&
document.select(".content-blocked, .login-required").isNotEmpty()
) {
throw Exception("Okumak için WebView üzerinden giriş yapın")
}
return pageList
}
}

View File

@ -1,7 +1,25 @@
package eu.kanade.tachiyomi.extension.tr.jiangzaitoon
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class Jiangzaitoon : Madara("Jiangzaitoon", "https://jiangzaitoon.co", "tr", SimpleDateFormat("d MMM yyy", Locale("tr")))
class Jiangzaitoon : Madara(
"Jiangzaitoon",
"https://jiangzaitoon.cc",
"tr",
SimpleDateFormat("d MMM yyy", Locale("tr")),
) {
override val useNewChapterEndpoint = false
override val client: OkHttpClient by lazy {
super.client.newBuilder()
.connectTimeout(10, TimeUnit.SECONDS)
.readTimeout(3, TimeUnit.MINUTES) // aka shit source
.build()
}
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
}

View File

@ -6,9 +6,11 @@ import java.util.Locale
class MangaSehri : Madara(
"Manga Şehri",
"https://mangasehri.com",
"https://manga-sehri.com",
"tr",
SimpleDateFormat("dd/MM/yyy", Locale("tr")),
) {
override val useNewChapterEndpoint = true
override val useNewChapterEndpoint = false
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
}

View File

@ -6,9 +6,13 @@ import java.util.Locale
class MangaSpark : Madara(
"MangaSpark",
"https://mangaspark.com",
"https://mangaspark.org",
"ar",
dateFormat = SimpleDateFormat("yyyy-MM-dd", Locale.ROOT),
dateFormat = SimpleDateFormat("d MMMM، yyyy", Locale("ar")),
) {
override val chapterUrlSuffix = ""
override val useNewChapterEndpoint = false
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
}

View File

@ -1,27 +1,18 @@
package eu.kanade.tachiyomi.extension.ar.mangastarz
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.SManga
import org.jsoup.nodes.Element
class MangaStarz : Madara("Manga Starz", "https://mangalike.org", "ar") {
override fun popularMangaFromElement(element: Element): SManga {
val manga = SManga.create()
with(element) {
select(popularMangaUrlSelector).first()?.let {
manga.setUrlWithoutDomain(it.attr("abs:href"))
manga.title = it.ownText()
}
select("img").first()?.let {
manga.thumbnail_url = imageFromElement(it)?.replace("mangastarz", "mangalek")
}
}
return manga
}
import java.text.SimpleDateFormat
import java.util.Locale
class MangaStarz : Madara(
"Manga Starz",
"https://mangastarz.org",
"ar",
dateFormat = SimpleDateFormat("d MMMM، yyyy", Locale("ar")),
) {
override val chapterUrlSuffix = ""
override val useNewChapterEndpoint = false
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
}

View File

@ -0,0 +1,7 @@
package eu.kanade.tachiyomi.extension.en.manhuasnet
import eu.kanade.tachiyomi.multisrc.madara.Madara
class Manhuasnet : Madara("Manhua Mix", "https://manhuamix.com", "en") {
override val id = 4574243309965401439
}

View File

@ -0,0 +1,7 @@
package eu.kanade.tachiyomi.extension.en.manhwaworld
import eu.kanade.tachiyomi.multisrc.madara.Madara
class ManhwaWorld : Madara("AQUA Scans", "https://aquascans.com", "en") {
override val id = 8857833474626810640
}

View File

@ -0,0 +1,15 @@
package eu.kanade.tachiyomi.extension.en.nitroscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
class NitroScans : Madara("Nitro Manga", "https://nitromanga.com", "en") {
override val id = 1310352166897986481
override val mangaSubString = "mangas"
override val filterNonMangaItems = false
override val useNewChapterEndpoint = true
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
}

View File

@ -38,6 +38,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("ApollComics", "https://apollcomics.xyz", "es", isNsfw = true, overrideVersionCode = 2),
SingleLang("Apolltoons", "https://apolltoons.xyz", "es", isNsfw = true),
SingleLang("Aqua Manga", "https://aquamanga.com", "en", overrideVersionCode = 7),
SingleLang("AQUA Scans", "https://aquascans.com", "en", className = "ManhwaWorld", overrideVersionCode = 1),
SingleLang("ArazNovel", "https://www.araznovel.com", "tr", overrideVersionCode = 3),
SingleLang("ArcheR Scans", "https://www.archerscans.com", "en", isNsfw = false),
SingleLang("Arthur Scan", "https://arthurscan.xyz", "pt-BR", overrideVersionCode = 4),
@ -67,6 +68,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("CatOnHeadTranslations", "https://catonhead.com", "en", overrideVersionCode = 2),
SingleLang("Cerise Scan", "https://cerisescan.com", "pt-BR", pkgName = "cerisescans", isNsfw = true, overrideVersionCode = 7),
SingleLang("Chibi Manga", "https://www.cmreader.info", "en", overrideVersionCode = 1),
SingleLang("Çizgi Roman Arşivi", "https://cizgiromanarsivi.com", "tr", className = "CizgiRomanArsivi"),
SingleLang("Clover Manga", "https://clover-manga.com", "tr", overrideVersionCode = 2),
SingleLang("Coco Rip", "https://cocorip.net", "es"),
SingleLang("Coffee Manga", "https://coffeemanga.io", "en", isNsfw = false, overrideVersionCode = 2),
@ -97,10 +99,9 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("EGY Manga", "https://egymanga.net", "ar", overrideVersionCode = 1),
SingleLang("Elite Manga", "https://www.elitemanga.org", "en", isNsfw = false),
SingleLang("Emperor Scan", "https://emperorscan.com", "es", overrideVersionCode = 1),
SingleLang("Empire Webtoon", "https://webtoonempire.com", "ar", isNsfw = true, overrideVersionCode = 2),
SingleLang("Empire Webtoon", "https://webtoonsempireron.com", "ar", isNsfw = true, overrideVersionCode = 3),
SingleLang("Eromiau", "https://www.eromiau.com", "es", isNsfw = true),
SingleLang("Esomanga", "https://esomanga.com", "tr", overrideVersionCode = 1),
SingleLang("EvaScans", "https://evascans.com", "tr"),
SingleLang("FactManga", "https://factmanga.com", "en", isNsfw = false),
SingleLang("FaeStorm", "https://faestormmanga.com", "tr"),
SingleLang("Fay Scans", "https://fayscans.com.br", "pt-BR", overrideVersionCode = 1),
@ -168,7 +169,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("IsekaiScan.top (unoriginal)", "https://isekaiscan.top", "en", pkgName = "isekaiscantop", className = "IsekaiScanTop", overrideVersionCode = 1),
SingleLang("IsekaiScanManga (unoriginal)", "https://isekaiscanmanga.com", "en", className = "IsekaiScanManga", overrideVersionCode = 1),
SingleLang("Its Your Right Manhua", "https://itsyourightmanhua.com", "en", className = "ItsYourRightManhua", overrideVersionCode = 2),
SingleLang("Jiangzaitoon", "https://jiangzaitoon.co", "tr", isNsfw = true, overrideVersionCode = 2),
SingleLang("Jiangzaitoon", "https://jiangzaitoon.cc", "tr", isNsfw = true, overrideVersionCode = 3),
SingleLang("Jimanga", "https://jimanga.com", "en", isNsfw = false),
SingleLang("Kakusei Project", "https://kakuseiproject.com.br", "pt-BR"),
SingleLang("Kami Sama Explorer", "https://leitor.kamisama.com.br", "pt-BR", overrideVersionCode = 2),
@ -191,13 +192,13 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Lara Manga", "https://laramanga.love", "en", overrideVersionCode = 1),
SingleLang("Last Knight Translation", "https://lkscanlation.com", "es", isNsfw = true, className = "LKScanlation"),
SingleLang("Ler Yaoi", "https://leryaoi.com", "pt-BR", isNsfw = true),
SingleLang("Leviatan Scans", "https://lscomic.com", "en", overrideVersionCode = 15),
SingleLang("LHTranslation", "https://lhtranslation.net", "en", overrideVersionCode = 1),
SingleLang("Lily Manga", "https://lilymanga.net", "en", isNsfw = true, overrideVersionCode = 3),
SingleLang("Limbo Scan", "https://limboscan.com.br", "pt-BR", isNsfw = true),
SingleLang("Link Start Scan", "https://www.linkstartscan.xyz", "pt-BR", isNsfw = true),
SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Lord Manga", "https://lordmanga.com", "en"),
SingleLang("Leviatan Scans", "https://lscomic.com", "en", overrideVersionCode = 15),
SingleLang("Luffy Manga", "https://luffymanga.com", "en", isNsfw = false),
SingleLang("LuxManga", "https://luxmanga.com", "en"),
SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1),
@ -221,6 +222,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Manga Lord", "https://mangalord.com", "en", overrideVersionCode = 1),
SingleLang("Manga Mammy", "https://mangamammy.ru", "ru", isNsfw = true),
SingleLang("Manga Mitsu", "https://mangamitsu.com", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Mangá Nanquim", "https://mangananquim.com", "pt-BR", className = "MangaNanquim"),
SingleLang("Manga Nerds", "https://manganerds.com", "en", isNsfw = false),
SingleLang("Manga One Love", "https://mangaonelove.site/", "ru", isNsfw = true),
SingleLang("Manga Online Team", "https://mangaonlineteam.com", "en"),
@ -232,8 +234,8 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Manga Rock.team (unoriginal)", "https://mangarock.team", "en", isNsfw = false, className = "MangaRockTeamUnoriginal"),
SingleLang("Manga Rocky", "https://mangarocky.com", "en", overrideVersionCode = 1),
SingleLang("Manga Rose", "https://mangarose.net", "ar"),
SingleLang("Manga Şehri", "https://mangasehri.com", "tr", className = "MangaSehri", isNsfw = true),
SingleLang("Manga Starz", "https://mangalike.org", "ar", overrideVersionCode = 4),
SingleLang("Manga Şehri", "https://manga-sehri.com", "tr", className = "MangaSehri", isNsfw = true, overrideVersionCode = 1),
SingleLang("Manga Starz", "https://mangastarz.org", "ar", overrideVersionCode = 5),
SingleLang("Manga Too", "https://mangatoo.com", "en", overrideVersionCode = 1),
SingleLang("Manga Tx.gg (unoriginal)", "https://mangatx.gg", "en", isNsfw = false, className = "MangaTxGg"),
SingleLang("Manga Weebs", "https://mangaweebs.in", "en", overrideVersionCode = 8),
@ -301,7 +303,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Mangas-Origines.fr", "https://mangas-origines.fr", "fr", className = "MangasOriginesFr"),
SingleLang("MangaSco", "https://manhwasco.net", "en", overrideVersionCode = 2),
SingleLang("MangaSiro", "https://mangasiro.com", "en", isNsfw = true),
SingleLang("MangaSpark", "https://mangaspark.com", "ar", overrideVersionCode = 3),
SingleLang("MangaSpark", "https://mangaspark.org", "ar", overrideVersionCode = 4),
SingleLang("MangaStic", "https://mangastic9.com", "en", overrideVersionCode = 2),
SingleLang("Mangasushi", "https://mangasushi.org", "en", overrideVersionCode = 3),
SingleLang("MangaTone", "https://mangatone.com", "en"),
@ -316,12 +318,12 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("MangaX1", "https://mangax1.com", "en"),
SingleLang("Mangaxico", "https://mangaxico.com", "es", isNsfw = true),
SingleLang("MangaXP", "https://mangaxp.com", "en", overrideVersionCode = 1),
SingleLang("Mangá Nanquim", "https://mangananquim.com", "pt-BR", className = "MangaNanquim"),
SingleLang("MangaYami", "https://www.mangayami.club", "en", overrideVersionCode = 2),
SingleLang("Manhastro", "https://manhastro.com", "pt-BR"),
SingleLang("Manhatic", "https://manhatic.com", "ar", isNsfw = true),
SingleLang("Manhua ES", "https://manhuaes.com", "en", overrideVersionCode = 6),
SingleLang("Manhua Kiss", "https://manhuakiss.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Manhua Mix", "https://manhuamix.com", "en", className = "Manhuasnet", overrideVersionCode = 3),
SingleLang("Manhua Plus", "https://manhuaplus.com", "en", overrideVersionCode = 6),
SingleLang("Manhua SY", "https://www.manhuasy.com", "en", overrideVersionCode = 2),
SingleLang("Manhua Zonghe", "https://manhuazonghe.com", "en", isNsfw = true),
@ -334,7 +336,6 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("ManhuaHot", "https://manhuahot.com", "en"),
SingleLang("ManhuaManhwa.online", "https://manhuamanhwa.online", "en", isNsfw = false, className = "ManhuaManhwaOnline"),
SingleLang("ManhuaManhwa", "https://manhuamanhwa.com", "en", isNsfw = true),
SingleLang("Manhuas.net", "https://manhuas.net", "en", className = "Manhuasnet", overrideVersionCode = 2),
SingleLang("ManhuaScan.info (unoriginal)", "https://manhuascan.info", "en", isNsfw = true, className = "ManhuaScanInfo"),
SingleLang("ManhuaUS", "https://manhuaus.com", "en", overrideVersionCode = 5),
SingleLang("ManhuaZone", "https://manhuazone.org", "en", overrideVersionCode = 1),
@ -354,9 +355,9 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("ManhwaNew", "https://manhwanew.com", "en", isNsfw = true),
SingleLang("Manhwas Men", "https://manhwas.men", "en", className = "ManhwasMen", isNsfw = true),
SingleLang("Manhwatop", "https://manhwatop.com", "en", overrideVersionCode = 2),
SingleLang("ManhwaWorld", "https://manhwaworld.com", "en"),
SingleLang("Manhwua.fans", "https://manhwua.fans", "en", isNsfw = true, className = "Manhwuafans"),
SingleLang("Mantraz Scan", "https://mantrazscan.com", "es"),
SingleLang("ManWe", "https://manwe.pro", "tr", className = "EvaScans", overrideVersionCode = 1),
SingleLang("ManyComic", "https://manycomic.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("ManyToon.me", "https://manytoon.me", "en", isNsfw = true, className = "ManyToonMe", overrideVersionCode = 4),
SingleLang("ManyToon", "https://manytoon.com", "en", isNsfw = true, overrideVersionCode = 5),
@ -383,7 +384,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("NekoScan", "https://nekoscan.com", "en", overrideVersionCode = 2),
SingleLang("Night Comic", "https://www.nightcomic.com", "en", overrideVersionCode = 1),
SingleLang("Niji Translations", "https://niji-translations.com", "ar", overrideVersionCode = 1),
SingleLang("Nitro Scans", "https://nitroscans.com", "en"),
SingleLang("Nitro Manga", "https://nitromanga.com", "en", className = "NitroScans", overrideVersionCode = 1),
SingleLang("No Index Scan", "https://noindexscan.com", "pt-BR", isNsfw = true),
SingleLang("Noblesse Translations", "https://noblessetranslations.com", "es", overrideVersionCode = 1),
SingleLang("Nocturne Summer", "https://nocsummer.com.br", "pt-BR", isNsfw = true),
@ -484,8 +485,8 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("TritiniaScans", "https://tritinia.org", "en", overrideVersionCode = 4),
SingleLang("Tumangaonline.site", "https://tumangaonline.site", "es", isNsfw = true, className = "TumangaonlineSite", pkgName = "tumangaonlinesite"),
SingleLang("Türkçe Manga", "https://turkcemanga.com", "tr", className = "TurkceManga", overrideVersionCode = 2),
SingleLang("Unitoon", "https://lectorunitoon.com", "es"),
SingleLang("Unitoon Oficial", "https://unitoonoficial.com", "es"),
SingleLang("Unitoon", "https://lectorunitoon.com", "es"),
SingleLang("Valkyrie Scan", "https://valkyriescan.com", "pt-BR", isNsfw = true),
SingleLang("Ver Manhwas", "https://vermanhwa.es", "es", isNsfw = true, overrideVersionCode = 1),
SingleLang("VinManga", "https://vinload.com", "en", isNsfw = true),
@ -522,7 +523,6 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Zinmanga", "https://zinmanga.com", "en", overrideVersionCode = 1),
SingleLang("Zinmanhwa", "https://zinmanhwa.com", "en"),
SingleLang("ZuttoManga", "https://zuttomanga.com", "en", overrideVersionCode = 1),
SingleLang("Çizgi Roman Arşivi", "https://cizgiromanarsivi.com", "tr", className = "CizgiRomanArsivi"),
SingleLang("شبكة كونان العربية", "https://manga.detectiveconanar.com", "ar", className = "DetectiveConanAr", overrideVersionCode = 2),
SingleLang("عرب تونز", "https://arabtoons.net", "ar", isNsfw = true, className = "ArabToons"),
SingleLang("مانجا العاشق", "https://3asq.org", "ar", className = "Manga3asq", overrideVersionCode = 2),

View File

@ -5,7 +5,7 @@ ext {
extName = 'Meitua.top'
pkgNameSuffix = 'all.meituatop'
extClass = '.MeituaTop'
extVersionCode = 4
extVersionCode = 5
isNsfw = true
}

View File

@ -23,7 +23,7 @@ class MeituaTop : HttpSource() {
override val lang = "all"
override val supportsLatest = false
override val baseUrl = "https://meitu1.one"
override val baseUrl = "https://meitu1.xyz"
override fun popularMangaRequest(page: Int) = GET("$baseUrl/arttype/0b-$page.html", headers)
@ -75,7 +75,7 @@ class MeituaTop : HttpSource() {
override fun fetchChapterList(manga: SManga): Observable<List<SChapter>> {
val chapter = SChapter.create().apply {
url = manga.url
name = manga.title
name = "Gallery"
date_upload = dateFormat.parse(manga.description!!)!!.time
chapter_number = -2f
}

View File

@ -5,7 +5,7 @@ ext {
extName = 'Team X'
pkgNameSuffix = 'ar.teamx'
extClass = '.TeamX'
extVersionCode = 14
extVersionCode = 15
isNsfw = false
}

View File

@ -22,7 +22,7 @@ class TeamX : ParsedHttpSource() {
override val name = "Team X"
override val baseUrl = "https://team1x12.com"
override val baseUrl = "https://team11x11.com"
override val lang = "ar"

View File

@ -5,7 +5,7 @@ ext {
extName = 'Nude-Moon'
pkgNameSuffix = 'ru.nudemoon'
extClass = '.Nudemoon'
extVersionCode = 15
extVersionCode = 16
isNsfw = true
}

View File

@ -21,7 +21,7 @@ class Nudemoon : ParsedHttpSource() {
override val name = "Nude-Moon"
override val baseUrl = "https://nude-moon.org"
override val baseUrl = "https://x.nude-moon.fun"
override val lang = "ru"