From 0321dda1d76cb17a20b90a0fe26542dd5b3af0d0 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 29 Jul 2019 20:39:12 -0500 Subject: [PATCH] Fix handling for video content warnings --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 7e2e0f5a..7abc8404 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -1179,7 +1179,7 @@ def fetch_video(id, region) raise "Video unavailable." end - if info["reason"]? + if info["reason"]? && !info["player_response"]["videoDetails"]? raise info["reason"] end