]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube] Prefer video_info with token available
authorSergey M․ <dstftw@gmail.com>
Wed, 4 Nov 2015 16:12:24 +0000 (22:12 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 4 Nov 2015 16:12:24 +0000 (22:12 +0600)
youtube_dl/extractor/youtube.py

index d7eda7aa72d29987c8d5f460e224387b38b69977..5eeb3c6633a50e7ff96cd7911883bb19d0402d9a 100644 (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: