From: Sergey M․ Date: Sat, 10 Dec 2016 18:40:30 +0000 (+0700) Subject: [facebook] Detect login required error message X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d2d2495e1669e880cd2eb56fa5c9a92f63c5476b;p=youtube-dl [facebook] Detect login required error message --- 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')