Browse Source
[facebook] Detect login required error message
master
Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
2 additions and
0 deletions
-
youtube_dl/extractor/facebook.py
|
@ -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') |
|
|
|
|
|
|
|
|