logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: bb7ac1ed669d67d79fa1a3b9e5c70271892ecbcc
parent fdf91c52a8b58b3b7c12a393629fc962d6ab7618
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun,  6 Jun 2021 01:16:43 +0700

[facebook] Improve login required detection

Diffstat:

Myoutube_dl/extractor/facebook.py5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py @@ -521,7 +521,10 @@ 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: + elif any(p in webpage for p in ( + '>You must log in to continue', + 'id="login_form"', + 'id="loginbutton"')): self.raise_login_required() if not video_data and '/watchparty/' in url: