projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb5a470
)
[youtube] Prefer video_info with token available
author
Sergey M․
<dstftw@gmail.com>
Wed, 4 Nov 2015 16:12:24 +0000
(22:12 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 4 Nov 2015 16:12:24 +0000
(22:12 +0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index d7eda7aa72d29987c8d5f460e224387b38b69977..5eeb3c6633a50e7ff96cd7911883bb19d0402d9a 100644
(file)
--- 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: