MangaLink: Add Manga Type To Genres (#8791)

This commit is contained in:
Ahmed gamal 2021-08-24 12:44:07 +02:00 committed by GitHub
parent 8fbd3ab39d
commit a3071faf48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaLink' extName = 'MangaLink'
pkgNameSuffix = 'ar.mangalink' pkgNameSuffix = 'ar.mangalink'
extClass = '.MangaLink' extClass = '.MangaLink'
extVersionCode = 3 extVersionCode = 4
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -85,7 +85,8 @@ class MangaLink : ParsedHttpSource() {
return SManga.create().apply { return SManga.create().apply {
document.select("div.card").first().let { info -> document.select("div.card").first().let { info ->
title = info.select("h1").text() title = info.select("h1").text()
genre = info.select("span.d-flex a.btn").joinToString { it.text() } // add series type(manga/manhwa/manhua/other) thinggy to genre
genre = info.select("span.d-flex a.btn, span:nth-child(1) > label:nth-child(2)").joinToString { it.text() }
description = info.select("p.card-text").text() description = info.select("p.card-text").text()
thumbnail_url = info.select("img").attr("abs:src") thumbnail_url = info.select("img").attr("abs:src")
} }