From b3167bc1a979bf6b873348b1fd69ac888940be79 Mon Sep 17 00:00:00 2001 From: Ken Swenson Date: Fri, 15 Feb 2019 19:53:32 -0500 Subject: [PATCH] [mangadex] Use cdndex for cover thumbnails (#823) [mangadex] Use cdndex for cover thumbnails --- src/all/mangadex/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index db6d9dcc5..76541e710 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: MangaDex' pkgNameSuffix = 'all.mangadex' extClass = '.MangadexFactory' - extVersionCode = 47 + extVersionCode = 48 libVersion = '1.2' } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt index 845040fc1..62f478d13 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt @@ -30,6 +30,8 @@ open class Mangadex(override val lang: String, private val internalLang: String, override val baseUrl = "https://mangadex.org" + val cdnUrl = "https://cdndex.com" + override val supportsLatest = true private val preferences: SharedPreferences by lazy { @@ -281,7 +283,7 @@ open class Mangadex(override val lang: String, private val internalLang: String, val mangaJson = json.getAsJsonObject("manga") val chapterJson = json.getAsJsonObject("chapter") manga.title = baseUrl + mangaJson.get("title").string - manga.thumbnail_url = baseUrl + mangaJson.get("cover_url").string + manga.thumbnail_url = cdnUrl + mangaJson.get("cover_url").string manga.description = cleanString(mangaJson.get("description").string) manga.author = mangaJson.get("author").string manga.artist = mangaJson.get("artist").string