Get statuslist first when parsing tracking

This commit is contained in:
Jobobby04 2021-05-07 13:39:50 -04:00
parent 858a5e6eee
commit b297d580b0

View File

@ -206,13 +206,13 @@ class FollowsHandler(
suspend fun fetchTrackingInfo(url: String): Track {
return withIOContext {
val statusListResponse = client.newCall(statusListRequest()).await().parseAs<JsonObject>(MdUtil.jsonParser)
val request = GET(
MdUtil.mangaUrl + "/" + MdUtil.getMangaId(url),
MdUtil.getAuthHeaders(headers, preferences, mdList),
CacheControl.FORCE_NETWORK
)
val response = client.newCall(request).await()
val statusListResponse = client.newCall(statusListRequest()).await().parseAs<JsonObject>(MdUtil.jsonParser)
followStatusParse(response, statusListResponse)
}
}