]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[facebook] Detect login required error message
authorSergey M․ <dstftw@gmail.com>
Sat, 10 Dec 2016 18:40:30 +0000 (01:40 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 10 Dec 2016 18:40:30 +0000 (01:40 +0700)
youtube_dl/extractor/facebook.py

index 4de21baeb9f596dfb538d8451620d38a795cc9f6..56a8582b4db105f109f34d6d92bdd4ceae8b3d01 100644 (file)
@@ -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')