mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-16 05:13:21 +00:00
[facebook] Detect login required error message
This commit is contained in:
parent
19b4900b7b
commit
d2d2495e16
|
@ -257,6 +257,8 @@ def _extract_from_url(self, url, video_id, fatal_if_no_video=True):
|
|||
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:
|
||||
self.raise_login_required()
|
||||
else:
|
||||
raise ExtractorError('Cannot parse data')
|
||||
|
||||
|
|
Loading…
Reference in a new issue