Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
Show a toast if video id is not found (should never happen). This is …
Browse files Browse the repository at this point in the history
…the same logic used before Stories existed.
  • Loading branch information
LisoUseInAIKyrios committed Oct 25, 2023
1 parent 960007d commit be00f4c
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ public class ReturnYouTubeDislikeApi {
*/
private static final int HTTP_STATUS_CODE_SUCCESS = 200;

/**
* Response code indicating the video id is not for a video that can be voted for.
* (it's not a Short or a regular video, and it's likely a YouTube Story)
*/
private static final int HTTP_STATUS_CODE_NOT_FOUND = 404;

/**
* Indicates a client rate limit has been reached and the client must back off.
*/
Expand Down Expand Up @@ -279,10 +273,6 @@ public static RYDVoteData fetchVotes(String videoId) {
LogHelper.printException(() -> "Failed to parse video: " + videoId + " json: " + json, ex);
// fall thru to update statistics
}
} else if (responseCode == HTTP_STATUS_CODE_NOT_FOUND) {
// Previously would happen with YouTube Stories and was normal.
// But Stories are no more so this condition should not happen.
LogHelper.printDebug(() -> "Video has no like/dislikes: " + videoId);
} else {
handleConnectionError(str("revanced_ryd_failure_connection_status_code", responseCode), null);
}
Expand Down

0 comments on commit be00f4c

Please sign in to comment.