From 5d98d876286ca2bd3ce5c1fb9dc6176a3306f0d3 Mon Sep 17 00:00:00 2001 From: Luis Alberto <37439458+lberoiza@users.noreply.github.com> Date: Mon, 21 Feb 2022 00:37:31 +0100 Subject: [PATCH] Manhwa latino (#10877) * First commit Mahnwa-Latino Extension. * manhwa-latino: Implementing find function TODO: only works with text, filter not implemented yet * manhwa-latino Add Parser to finde the information of Manhwa-Latino The parser 'ManhwaLatinoSiteParser.kt' make the whole magic to find the information of the Website. Mudularize The code and adding documentation * manhwa-latino: Adding Logos der Extension TODO: I am not to happy, i will check it later. * manhwa-latino: Adding Tags to Genre Combobox * manhwa-latino: Adding Headers to prevent error 404 The headers are necesary to prevent error 403 by downloading images. * manhwa-latino: Tags addded into Manga Description Page Status from Manga readed from Tags * manhwa-latino: Modularize Code * manhwa-latino: Adding Uploaddate for Chapters * manhwa-latino: Bug to get Chapter Number fixed * manhwa-latino: Logo 0.2 * manhwa-latino: Versionb 1.2.10 Adding Comments to ManhwaLatinoSiteParser * manhwa-latino: Remove logo_model directory * manhwa-latino: Show Seconds after Release a new Chapter * manhwa-latino: Fix for Cloudflare * manhwa-latino: Try to fix Cloudflare ByPass Adding isNsfw to build.gradle * manhwa-latino: Update from parser after website update * manhwa-latino: Deactivate lastest manga and new Client The new website from Manhwa-Latino doesnt show lastest mangas. * manhwa-latino: Adding Manifest to load url-adress The extesion will bi able to open and find mangas with the url. TODO: first version. NOT READY YET. * manhwa-latino: Fix to find Manga Status information * Manhwa-Latino: The Extension can open a Link Now the extension can recognize a link from Manhwa-Latino and show the manga from the link in the app. * Manhwa-Latino: Modularize Code and Activity for Url added * Manhwa-Latino: Add Constant-File. This file contain all contants for this extension. * manhwa-latino Url from the Website has changed. from https://manhwa-latino.com => https://manhwa-es.com * manhwa-latino Url update on manifest * manhwa-latino Fix to get ThumbnailUrl and Url from Slider The Slider from Manhwa-Latino was updated and the parser was updated as well. Co-authored-by: Luis Beroiza Co-authored-by: AlberyKous --- src/es/mahnwalatino/AndroidManifest.xml | 2 +- src/es/mahnwalatino/build.gradle | 2 +- .../kanade/tachiyomi/extension/es/manhwalatino/MLConstants.kt | 2 +- .../kanade/tachiyomi/extension/es/manhwalatino/ManhwaLatino.kt | 2 +- .../extension/es/manhwalatino/ManhwaLatinoSiteParser.kt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/es/mahnwalatino/AndroidManifest.xml b/src/es/mahnwalatino/AndroidManifest.xml index 1adf36af5..a65d7d653 100644 --- a/src/es/mahnwalatino/AndroidManifest.xml +++ b/src/es/mahnwalatino/AndroidManifest.xml @@ -13,7 +13,7 @@ diff --git a/src/es/mahnwalatino/build.gradle b/src/es/mahnwalatino/build.gradle index 5a170aa1b..2dc9f5d2e 100644 --- a/src/es/mahnwalatino/build.gradle +++ b/src/es/mahnwalatino/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Manhwa-Latino' pkgNameSuffix = 'es.manhwalatino' extClass = '.ManhwaLatino' - extVersionCode = 15 + extVersionCode = 16 isNsfw = true } diff --git a/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/MLConstants.kt b/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/MLConstants.kt index d6268a3f1..c87da3c4d 100644 --- a/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/MLConstants.kt +++ b/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/MLConstants.kt @@ -28,9 +28,9 @@ object MLConstants { const val mangaDetailsAttributes: String = "div.summary_content div.post-content_item" const val searchSiteMangasHTMLSelector = "div.c-tabs-item__content" const val genreSiteMangasHTMLSelector = "div.page-item-detail.manga" - const val latestUpdatesSelectorUrl = "div.slider__thumb_item > a" const val latestUpdatesSelectorThumbnailUrl = "div.slider__thumb_item > a > img" const val latestUpdatesSelectorTitle = "div.slider__content h4" + const val latestUpdatesSelectorUrl = "div.slider__content h4 a" const val chapterListParseSelector = "li.wp-manga-chapter" const val chapterLinkParser = "a" const val chapterReleaseDateLinkParser = "span.chapter-release-date a" diff --git a/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/ManhwaLatino.kt b/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/ManhwaLatino.kt index d81a17a0a..28a7cbe31 100644 --- a/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/ManhwaLatino.kt +++ b/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/ManhwaLatino.kt @@ -28,7 +28,7 @@ class ManhwaLatino : ParsedHttpSource() { /** * Base url of the website without the trailing slash, like: http://mysite.com */ - override val baseUrl = "https://manhwa-latino.com" + override val baseUrl = "https://manhwa-es.com" /** * Header for Request diff --git a/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/ManhwaLatinoSiteParser.kt b/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/ManhwaLatinoSiteParser.kt index 3a1fe7e66..c01766c2b 100644 --- a/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/ManhwaLatinoSiteParser.kt +++ b/src/es/mahnwalatino/src/eu/kanade/tachiyomi/extension/es/manhwalatino/ManhwaLatinoSiteParser.kt @@ -75,7 +75,7 @@ class ManhwaLatinoSiteParser( manga.url = getUrlWithoutDomain(element.select(MLConstants.latestUpdatesSelectorUrl).first().attr("abs:href")) manga.title = element.select(MLConstants.latestUpdatesSelectorTitle).text().trim() - manga.thumbnail_url = element.select(MLConstants.latestUpdatesSelectorThumbnailUrl).attr("abs:src").replace("//", "/") + manga.thumbnail_url = element.select(MLConstants.latestUpdatesSelectorThumbnailUrl).attr("abs:data-src").replace("//", "/") return manga }