1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[facebook] Don't recommend to report the issue if the video is private.

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-10-27 12:13:55 +01:00
parent 6f71ef580c
commit 749a4fd2fd

View File

@ -102,10 +102,11 @@ class FacebookIE(InfoExtractor):
if not m:
m_msg = re.search(r'class="[^"]*uiInterstitialContent[^"]*"><div>(.*?)</div>', webpage)
if m_msg is not None:
err_msg = u'The video is not available, Facebook said: "%s"' % m_msg.group(1)
raise ExtractorError(
u'The video is not available, Facebook said: "%s"' % m_msg.group(1),
expected=True)
else:
err_msg = u'Cannot parse data'
raise ExtractorError(err_msg)
raise ExtractorError(u'Cannot parse data')
data = dict(json.loads(m.group(1)))
params_raw = compat_urllib_parse.unquote(data['params'])
params = json.loads(params_raw)