|
|
@ -466,15 +466,18 @@ class FacebookIE(InfoExtractor):
|
|
|
|
return info_dict
|
|
|
|
return info_dict
|
|
|
|
|
|
|
|
|
|
|
|
if '/posts/' in url:
|
|
|
|
if '/posts/' in url:
|
|
|
|
entries = [
|
|
|
|
video_id_json = self._search_regex(
|
|
|
|
self.url_result('facebook:%s' % vid, FacebookIE.ie_key())
|
|
|
|
r'(["\'])video_ids\1\s*:\s*(?P<ids>\[.+?\])', webpage, 'video ids', group='ids',
|
|
|
|
for vid in self._parse_json(
|
|
|
|
default='')
|
|
|
|
self._search_regex(
|
|
|
|
if video_id_json:
|
|
|
|
r'(["\'])video_ids\1\s*:\s*(?P<ids>\[.+?\])',
|
|
|
|
entries = [
|
|
|
|
webpage, 'video ids', group='ids'),
|
|
|
|
self.url_result('facebook:%s' % vid, FacebookIE.ie_key())
|
|
|
|
video_id)]
|
|
|
|
for vid in self._parse_json(video_id_json, video_id)]
|
|
|
|
|
|
|
|
return self.playlist_result(entries, video_id)
|
|
|
|
return self.playlist_result(entries, video_id)
|
|
|
|
|
|
|
|
|
|
|
|
# Single Video?
|
|
|
|
|
|
|
|
video_id = self._search_regex(r'video_id:\s*"([0-9]+)"', webpage, 'single video id')
|
|
|
|
|
|
|
|
return self.url_result('facebook:%s' % video_id, FacebookIE.ie_key())
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
_, info_dict = self._extract_from_url(
|
|
|
|
_, info_dict = self._extract_from_url(
|
|
|
|
self._VIDEO_PAGE_TEMPLATE % video_id,
|
|
|
|
self._VIDEO_PAGE_TEMPLATE % video_id,
|
|
|
|