mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-11 00:47:15 +08:00
Merge pull request #125 from ytdl-org/master
[pull] master from ytdl-org:master
This commit is contained in:
commit
f5b3240d00
@ -423,6 +423,11 @@ class FacebookIE(InfoExtractor):
|
||||
if not formats:
|
||||
raise ExtractorError('Cannot find video formats')
|
||||
|
||||
# Downloads with browser's User-Agent are rate limited. Working around
|
||||
# with non-browser User-Agent.
|
||||
for f in formats:
|
||||
f.setdefault('http_headers', {})['User-Agent'] = 'facebookexternalhit/1.1'
|
||||
|
||||
self._sort_formats(formats)
|
||||
|
||||
video_title = self._html_search_regex(
|
||||
|
Loading…
x
Reference in New Issue
Block a user