fix: better error message when calling extract_info on unavailable video

pull/253/head
Chris Midgley 5 years ago
parent 228385340e
commit 3a0db7f292

@ -1937,6 +1937,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
age_gate = False age_gate = False
# Try looking directly into the video webpage # Try looking directly into the video webpage
ytplayer_config = self._get_ytplayer_config(video_id, video_webpage) ytplayer_config = self._get_ytplayer_config(video_id, video_webpage)
if ytplayer_config:
args = ytplayer_config.get("args") args = ytplayer_config.get("args")
if args is not None: if args is not None:
if args.get('url_encoded_fmt_stream_map') or args.get('hlsvp'): if args.get('url_encoded_fmt_stream_map') or args.get('hlsvp'):

Loading…
Cancel
Save