From af1f88e53f0378668b090307d7f831ebace90136 Mon Sep 17 00:00:00 2001 From: Carlos Date: Mon, 20 Jan 2020 20:03:27 -0500 Subject: [PATCH] fix chapter list not reflecting blocked groups from mangadex (#2104) * Force network instead of using cache when getting manga info and chapter list for mangadex * The correct way to do the force network for mangadex --- src/all/mangadex/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index 2eb39eee9..5333c4783 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 = 78 + extVersionCode = 79 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 9314f1346..f09077f6b 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 @@ -347,11 +347,11 @@ abstract class Mangadex( } private fun apiRequest(manga: SManga): Request { - return GET(baseUrl + API_MANGA + getMangaId(manga.url), headers) + return GET(baseUrl + API_MANGA + getMangaId(manga.url), headers, CacheControl.FORCE_NETWORK) } private fun searchMangaByIdRequest(id: String): Request { - return GET(baseUrl + API_MANGA + id, headers) + return GET(baseUrl + API_MANGA + id, headers, CacheControl.FORCE_NETWORK) } private fun getMangaId(url: String): String {