add two new sources to madara (#7811)

* Update MangaOwl.kt

* Update build.gradle

* Update MadaraGenerator.kt

* add icon

* Update MadaraGenerator.kt

* add icon

* Update MadaraGenerator.kt

* Create OhNoManga.kt
This commit is contained in:
CVIUS 2021-06-23 06:18:29 +08:00 committed by GitHub
parent a440eedf81
commit 08b5279b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 13 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

View File

@ -0,0 +1,9 @@
package eu.kanade.tachiyomi.extension.en.ohnomanga
import eu.kanade.tachiyomi.annotations.Nsfw
import eu.kanade.tachiyomi.multisrc.madara.Madara
@Nsfw
class OhNoManga : Madara("Oh No Manga", "https://ohnomanga.com", "en") {
}

View File

@ -157,6 +157,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("MangaSco", "https://mangasco.com", "en", overrideVersionCode = 1), SingleLang("MangaSco", "https://mangasco.com", "en", overrideVersionCode = 1),
SingleLang("MangaSpark", "https://mangaspark.com", "ar"), SingleLang("MangaSpark", "https://mangaspark.com", "ar"),
SingleLang("MangaStein", "https://mangastein.com", "tr"), SingleLang("MangaStein", "https://mangastein.com", "tr"),
SingleLang("MangaStic", "https://mangastic.com", "en"),
SingleLang("MangaTK", "https://mangatk.com", "en"), SingleLang("MangaTK", "https://mangatk.com", "en"),
SingleLang("MangaTX", "https://mangatx.com", "en", overrideVersionCode = 1), SingleLang("MangaTX", "https://mangatx.com", "en", overrideVersionCode = 1),
SingleLang("MangaTeca", "https://www.mangateca.com", "pt-BR", overrideVersionCode = 2), SingleLang("MangaTeca", "https://www.mangateca.com", "pt-BR", overrideVersionCode = 2),
@ -207,6 +208,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Ninjavi", "https://ninjavi.com", "ar", overrideVersionCode = 1), SingleLang("Ninjavi", "https://ninjavi.com", "ar", overrideVersionCode = 1),
SingleLang("Nitro Scans", "https://nitroscans.com", "en"), SingleLang("Nitro Scans", "https://nitroscans.com", "en"),
SingleLang("NovelMic", "https://novelmic.com", "en", overrideVersionCode = 1), SingleLang("NovelMic", "https://novelmic.com", "en", overrideVersionCode = 1),
SingleLang("Oh No Manga", "https://ohnomanga.com", "en", isNsfw = true),
SingleLang("Off Scan", "https://offscan.top", "pt-BR", overrideVersionCode = 2), SingleLang("Off Scan", "https://offscan.top", "pt-BR", overrideVersionCode = 2),
SingleLang("OnManga", "https://onmanga.com", "en", overrideVersionCode = 1), SingleLang("OnManga", "https://onmanga.com", "en", overrideVersionCode = 1),
SingleLang("Origami Orpheans", "https://origami-orpheans.com.br", "pt-BR", overrideVersionCode = 2), SingleLang("Origami Orpheans", "https://origami-orpheans.com.br", "pt-BR", overrideVersionCode = 2),

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaOwl' extName = 'MangaOwl'
pkgNameSuffix = 'en.mangaowl' pkgNameSuffix = 'en.mangaowl'
extClass = '.MangaOwl' extClass = '.MangaOwl'
extVersionCode = 12 extVersionCode = 13
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -86,7 +86,7 @@ class MangaOwl : ParsedHttpSource() {
author = infoElement.select("p.fexi_header_para a.author_link").text() author = infoElement.select("p.fexi_header_para a.author_link").text()
artist = author artist = author
status = parseStatus(infoElement.select("p.fexi_header_para:contains(status)").first().ownText()) status = parseStatus(infoElement.select("p.fexi_header_para:contains(status)").first().ownText())
genre = infoElement.select(".owl-tags:not(a.label-owl-tag) a.label").mapNotNull{ it.text() }.joinToString(", ") genre = infoElement.select("div.col-xs-12.col-md-8.single-right-grid-right > p > a[href*=genres]").joinToString { it.text() }
description = infoElement.select(".description").first().ownText() description = infoElement.select(".description").first().ownText()
thumbnail_url = infoElement.select("img").first()?.let { img -> thumbnail_url = infoElement.select("img").first()?.let { img ->
if (img.hasAttr("data-src")) img.attr("abs:data-src") else img.attr("abs:src") if (img.hasAttr("data-src")) img.attr("abs:data-src") else img.attr("abs:src")