[facebook] Improve login required detection

This commit is contained in:
=?UTF-8?q?Sergey=20M=E2=80=A4?= 2021-06-21 20:19:41 +02:00 committed by Lauren Liberda
parent 93131809f2
commit ac99e96a1e

View file

@ -521,7 +521,10 @@ class FacebookIE(InfoExtractor):
raise ExtractorError( raise ExtractorError(
'The video is not available, Facebook said: "%s"' % m_msg.group(1), 'The video is not available, Facebook said: "%s"' % m_msg.group(1),
expected=True) 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() self.raise_login_required()
if not video_data and '/watchparty/' in url: if not video_data and '/watchparty/' in url: