From d2d2495e1669e880cd2eb56fa5c9a92f63c5476b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 11 Dec 2016 01:40:30 +0700 Subject: [PATCH] [facebook] Detect login required error message --- youtube_dl/extractor/facebook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index 4de21baeb9..56a8582b4d 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -257,6 +257,8 @@ def _extract_from_url(self, url, video_id, fatal_if_no_video=True): 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')