1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 16:36:48 +00:00

[facebook] Detect login required error message

This commit is contained in:
Sergey M․ 2016-12-11 01:40:30 +07:00
parent 19b4900b7b
commit d2d2495e16
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -257,6 +257,8 @@ 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:
self.raise_login_required()
else: else:
raise ExtractorError('Cannot parse data') raise ExtractorError('Cannot parse data')