From: Sergey M․ Date: Wed, 4 Nov 2015 16:12:24 +0000 (+0600) Subject: [youtube] Prefer video_info with token available X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=44b2264feae331eeb34e83eed1387def3d61a437;p=youtube-dl [youtube] Prefer video_info with token available --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index d7eda7aa7..5eeb3c663 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1107,6 +1107,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): if not video_info: video_info = get_video_info if 'token' in get_video_info: + if 'token' not in video_info: + video_info = get_video_info break if 'token' not in video_info: if 'reason' in video_info: