mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-11-14 07:59:27 +01:00
fix(YouTube - Client spoof): fix toast shown if opening paid or age restricted video (#482)
This commit is contained in:
parent
245265587a
commit
e72b65b599
@ -48,6 +48,11 @@ public class StoryBoardRendererRequester {
|
||||
if (responseCode == 200) {
|
||||
final JSONObject playerResponse = Requester.parseJSONObject(connection);
|
||||
|
||||
if (!playerResponse.has("storyboards")) {
|
||||
// Video is age restricted or paid.
|
||||
LogHelper.printDebug(() -> "Video has no public storyboard: " + videoId);
|
||||
return null;
|
||||
}
|
||||
final JSONObject storyboards = playerResponse.getJSONObject("storyboards");
|
||||
final String storyboardsRendererTag = storyboards.has("playerLiveStoryboardSpecRenderer")
|
||||
? "playerLiveStoryboardSpecRenderer"
|
||||
|
Loading…
Reference in New Issue
Block a user