projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdf91c5
)
[facebook] Improve login required detection
author
Sergey M․
<dstftw@gmail.com>
Sat, 5 Jun 2021 18:16:43 +0000
(
01:16
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 5 Jun 2021 18:16:43 +0000
(
01:16
+0700)
youtube_dl/extractor/facebook.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/facebook.py
b/youtube_dl/extractor/facebook.py
index cb34c59f544fe39e08814c947a9c66418302dd63..04650af39a22db6684b0a1272a9114e7db81c0b6 100644
(file)
--- 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: