Fix handling for video content warnings

This commit is contained in:
Omar Roth 2019-07-29 20:39:12 -05:00
parent ff5d79e3ee
commit 0321dda1d7
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2

View File

@ -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