Updated MangaSum Rebranding to MangaToro (#7784)

This commit is contained in:
Narin 2021-06-21 04:16:03 -07:00 committed by GitHub
parent 4a54d139c6
commit 1685fa47ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 1 additions and 32 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

View File

@ -1,31 +0,0 @@
package eu.kanade.tachiyomi.extension.all.mangasum
import eu.kanade.tachiyomi.multisrc.wpcomics.WPComics
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
import eu.kanade.tachiyomi.source.model.FilterList
import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale
class MangaSumFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
MangaSum(),
MangaSumRAW(),
)
}
class MangaSumRAW : WPComics("MangaSum RAW", "https://mangasum.com", "ja", SimpleDateFormat("MM/dd/yy", Locale.US), null) {
override fun popularMangaRequest(page: Int): Request {
return GET("$baseUrl/raw" + if (page > 1) "?page=$page" else "", headers)
}
override fun popularMangaSelector() = "div.items div.item"
override fun latestUpdatesRequest(page: Int) = popularMangaRequest(page)
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/genres?keyword=$query&page=$page", headers)
override fun searchMangaSelector() = "div.items div.item div.image a[title*=' - Raw']"
}
class MangaSum : WPComics("MangaSum", "https://mangasum.com", "en", SimpleDateFormat("MM/dd/yy", Locale.US), null) {
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/genres?keyword=$query&page=$page", headers)
override fun searchMangaSelector() = "div.items div.item div.image a:not([title*=' - Raw'])"
}

View File

@ -13,7 +13,7 @@ class WPComicsGenerator : ThemeSourceGenerator {
override val baseVersionCode: Int = 1
override val sources = listOf(
MultiLang("MangaSum", "https://mangasum.com", listOf("en", "ja")),
SingleLang("MangaToro", "https://mangatoro.com", "en"),
SingleLang("NetTruyen", "https://www.nettruyen.com", "vi", overrideVersionCode = 1),
SingleLang("NhatTruyen", "http://nhattruyen.com", "vi", overrideVersionCode = 1),
SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 1),