Remove Manga1001 (#13119)

This commit is contained in:
stevenyomi 2022-08-21 10:28:09 +08:00 committed by GitHub
parent a89f029cd6
commit 6d452d1709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 0 additions and 101 deletions

View File

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="eu.kanade.tachiyomi.extension" />

View File

@ -1,11 +0,0 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
ext {
extName = 'Manga1001 (Broken)'
pkgNameSuffix = 'ja.manga1001'
extClass = '.Manga1001'
extVersionCode = 2
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

View File

@ -1,88 +0,0 @@
package eu.kanade.tachiyomi.extension.ja.manga1001
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.Headers
import okhttp3.Request
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
/**
* Common parsers of mangaraw sites, follow manga1001.top by default.
* FIXME: manga1001.top changed its theme
*/
class Manga1001 : ParsedHttpSource() {
override val name = "Manga1001"
override val baseUrl = "https://manga1001.top"
protected open val imageSelector = ".wp-block-image > img"
override val lang = "ja"
override val supportsLatest = true
override fun headersBuilder(): Headers.Builder {
return super.headersBuilder().add("Referer", baseUrl)
}
// manga1001 and mangapro support rank by catalog + year/week. all catalog + week by default.
override fun popularMangaRequest(page: Int): Request =
GET("$baseUrl/seachlist/page/$page/?cat=-1&stime=1", headers)
override fun popularMangaSelector() = "article"
override fun popularMangaFromElement(element: Element) = SManga.create().apply {
// FIXME: when manga has different domain, such as manga on '新刊コミック' page, this manga will cause "Too many follow-up requests: 21"
setUrlWithoutDomain(element.select("a:has(img)").attr("href"))
title = element.select("img").attr("alt").substringBefore("(RAW").trim()
thumbnail_url = element.select("img").attr("data-src")
}
override fun popularMangaNextPageSelector() = ".next.page-numbers"
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/page/$page", headers)
override fun latestUpdatesSelector() = popularMangaSelector()
override fun latestUpdatesFromElement(element: Element) = popularMangaFromElement(element)
// there's no next page button on latest manga page
override fun latestUpdatesNextPageSelector(): String? { return null }
override fun searchMangaRequest(page: Int, query: String, filters: FilterList) =
GET("$baseUrl/page/$page/?s=$query", headers)
override fun searchMangaSelector() = popularMangaSelector()
override fun searchMangaFromElement(element: Element) = popularMangaFromElement(element)
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
// All manga details are located in the same <p> tag
description = document.select(".entry-content > p").text()
}
override fun chapterListSelector() = ".chaplist a"
override fun chapterFromElement(element: Element) = SChapter.create().apply {
url = element.attr("href")
name = element.text().trim()
}
override fun pageListParse(document: Document): List<Page> {
return document.select(imageSelector).mapIndexed { i, element ->
val attribute = if (element.hasAttr("data-src")) "data-src" else "src"
Page(i, "", element.attr(attribute))
}
}
override fun imageUrlParse(document: Document): String =
throw UnsupportedOperationException("Not Used")
override fun getFilterList() = FilterList()
}