From a3071faf4823f16530cdc810972501f0eeb71976 Mon Sep 17 00:00:00 2001 From: Ahmed gamal <12355.ahmedgamal.com@gmail.com> Date: Tue, 24 Aug 2021 12:44:07 +0200 Subject: [PATCH] MangaLink: Add Manga Type To Genres (#8791) --- src/ar/mangalink/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/ar/mangalink/MangaLink.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ar/mangalink/build.gradle b/src/ar/mangalink/build.gradle index 322b392a7..0a7fc472b 100644 --- a/src/ar/mangalink/build.gradle +++ b/src/ar/mangalink/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'MangaLink' pkgNameSuffix = 'ar.mangalink' extClass = '.MangaLink' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' } diff --git a/src/ar/mangalink/src/eu/kanade/tachiyomi/extension/ar/mangalink/MangaLink.kt b/src/ar/mangalink/src/eu/kanade/tachiyomi/extension/ar/mangalink/MangaLink.kt index d14c557e3..05299cf9b 100644 --- a/src/ar/mangalink/src/eu/kanade/tachiyomi/extension/ar/mangalink/MangaLink.kt +++ b/src/ar/mangalink/src/eu/kanade/tachiyomi/extension/ar/mangalink/MangaLink.kt @@ -85,7 +85,8 @@ class MangaLink : ParsedHttpSource() { return SManga.create().apply { document.select("div.card").first().let { info -> 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() thumbnail_url = info.select("img").attr("abs:src") }