projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c77a2e
)
[youtube] Workaround for get_video_info request (refs #29333)
author
Sergey M․
<dstftw@gmail.com>
Sun, 20 Jun 2021 18:34:27 +0000
(
01:34
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 20 Jun 2021 18:34:27 +0000
(
01:34
+0700)
See https://github.com/ytdl-org/youtube-dl/issues/29333#issuecomment-
864049544
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 35058950aed1c1458566f742ba6d856f4b30e63d..e68214008da5b8ef7da493fc209ad8147953fd05 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-1512,6
+1512,9
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
'video_id': video_id,
'eurl': 'https://youtube.googleapis.com/v/' + video_id,
'html5': 1,
+ # See https://github.com/ytdl-org/youtube-dl/issues/29333#issuecomment-864049544
+ 'c': 'TVHTML5',
+ 'cver': '6.20180913',
}, fatal=False)),
lambda x: x['player_response'][0],
compat_str) or '{}', video_id)