Commit ac99e96a authored by =?UTF-8?q?Sergey=20M=E2=80=A4?='s avatar =?UTF-8?q?Sergey=20M=E2=80=A4?= Committed by Lauren Liberda
Browse files

[facebook] Improve login required detection

parent 93131809
......@@ -521,7 +521,10 @@ class FacebookIE(InfoExtractor):
raise ExtractorError(
'The video is not available, Facebook said: "%s"' % m_msg.group(1),
expected=True)
elif '>You must log in to continue' in webpage:
elif any(p in webpage for p in (
'>You must log in to continue',
'id="login_form"',
'id="loginbutton"')):
self.raise_login_required()
if not video_data and '/watchparty/' in url:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment