diff --git a/app/src/main/java/fi/vanced/libraries/youtube/ryd/requests/RYDRequester.java b/app/src/main/java/fi/vanced/libraries/youtube/ryd/requests/RYDRequester.java index 9777f335..ed588b3d 100644 --- a/app/src/main/java/fi/vanced/libraries/youtube/ryd/requests/RYDRequester.java +++ b/app/src/main/java/fi/vanced/libraries/youtube/ryd/requests/RYDRequester.java @@ -37,13 +37,14 @@ public class RYDRequester { connection.setConnectTimeout(5 * 1000); if (connection.getResponseCode() == 200) { JSONObject json = getJSONObject(connection); - dislikeCount = json.getInt("dislikes"); + int dislikes = json.getInt("dislikes"); + dislikeCount = dislikes; if (debug) { Log.d(TAG, "dislikes fetched - " + dislikeCount); } // Set the dislikes - new Handler(Looper.getMainLooper()).post(() -> ReturnYouTubeDislikes.trySetDislikes(ReturnYouTubeDislikes.formatDislikes(dislikeCount))); + new Handler(Looper.getMainLooper()).post(() -> ReturnYouTubeDislikes.trySetDislikes(ReturnYouTubeDislikes.formatDislikes(dislikes))); } else if (debug) { Log.d(TAG, "dislikes fetch response was " + connection.getResponseCode());