aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-04 22:12:24 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-04 22:12:24 +0600
commit44b2264feae331eeb34e83eed1387def3d61a437 (patch)
tree1499d98e29be3c81da9b179800a76e1285646bba
parentcb5a470635ea2ad91f18d33e391979aabb0755fb (diff)
[youtube] Prefer video_info with token available
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 2 insertions, 0 deletions
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: