1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-20 05:32:37 +08:00

[youtube] Prefer video_info with token available

This commit is contained in:
Sergey M․
2015-11-04 22:12:24 +06:00
Unverified
parent cb5a470635
commit 44b2264fea
+2
View File
@@ -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: