youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 44b2264feae331eeb34e83eed1387def3d61a437
parent cb5a470635ea2ad91f18d33e391979aabb0755fb
Author: Sergey M․ <dstftw@gmail.com>
Date:   Wed,  4 Nov 2015 22:12:24 +0600

[youtube] Prefer video_info with token available

Diffstat:
Myoutube_dl/extractor/youtube.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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: