diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-12-11 01:40:30 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-12-11 01:40:30 +0700 |
commit | d2d2495e1669e880cd2eb56fa5c9a92f63c5476b (patch) | |
tree | cdbbb1c6a2aeadd6803d022b3e88d636cc44e942 /youtube_dl/extractor/facebook.py | |
parent | 19b4900b7b33047e439ae9c960f1a8516ecf3ff8 (diff) |
[facebook] Detect login required error message
Diffstat (limited to 'youtube_dl/extractor/facebook.py')
-rw-r--r-- | youtube_dl/extractor/facebook.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 4de21baeb..56a8582b4 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -257,6 +257,8 @@ 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: + self.raise_login_required() else: raise ExtractorError('Cannot parse data') |