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
This commit is contained in:
Carlos 2020-01-20 20:03:27 -05:00 committed by arkon
parent beccbec5ad
commit af1f88e53f
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaDex' appName = 'Tachiyomi: MangaDex'
pkgNameSuffix = 'all.mangadex' pkgNameSuffix = 'all.mangadex'
extClass = '.MangadexFactory' extClass = '.MangadexFactory'
extVersionCode = 78 extVersionCode = 79
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -347,11 +347,11 @@ abstract class Mangadex(
} }
private fun apiRequest(manga: SManga): Request { 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 { 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 { private fun getMangaId(url: String): String {