mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 16:40:18 +08:00
fix use goagent proxy, report "token" parameter not in video info for unknown reason
This commit is contained in:
parent
7232bb299b
commit
8a1ac2b2dd
@ -1223,7 +1223,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
|
||||
# Get video webpage
|
||||
url = proto + '://www.youtube.com/watch?v=%s&gl=US&hl=en&has_verified=1&bpctr=9999999999' % video_id
|
||||
video_webpage = self._download_webpage(url, video_id)
|
||||
video_webpage = self._download_webpage(url, video_id, headers = {'accept-encoding': 'identity'})
|
||||
|
||||
# Attempt to extract SWF player URL
|
||||
mobj = re.search(r'swfConfig.*?"(https?:\\/\\/.*?watch.*?-.*?\.swf)"', video_webpage)
|
||||
|
Loading…
x
Reference in New Issue
Block a user