diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-06-27 22:25:34 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-06-27 22:38:54 +0700 |
commit | 0646e34c7d511a02d8d93e840bceaa3521c2204e (patch) | |
tree | 939e82fb750cf3c18f2e4047987c365072ffa53e /youtube_dl/extractor/buzzfeed.py | |
parent | bf2dc9cc6e1ca38955f646b67f0f6ec40aec139d (diff) |
[facebook] Add support for plugin video embeds and multiple embeds (closes #13493)
Diffstat (limited to 'youtube_dl/extractor/buzzfeed.py')
-rw-r--r-- | youtube_dl/extractor/buzzfeed.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/buzzfeed.py b/youtube_dl/extractor/buzzfeed.py index 75fa92d7c..ec411091e 100644 --- a/youtube_dl/extractor/buzzfeed.py +++ b/youtube_dl/extractor/buzzfeed.py @@ -84,9 +84,10 @@ class BuzzFeedIE(InfoExtractor): continue entries.append(self.url_result(video['url'])) - facebook_url = FacebookIE._extract_url(webpage) - if facebook_url: - entries.append(self.url_result(facebook_url)) + facebook_urls = FacebookIE._extract_urls(webpage) + entries.extend([ + self.url_result(facebook_url) + for facebook_url in facebook_urls]) return { '_type': 'playlist', |