Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Laura i Domiś
haruhi-dl
Commits
78551931
Commit
78551931
authored
Jun 21, 2021
by
=?UTF-8?q?Sergey=20M=E2=80=A4?=
Committed by
Dominika Liberda
Oct 23, 2021
Browse files
[facebook] Improve login required detection
parent
ba41af65
Changes
1
Hide whitespace changes
Inline
Side-by-side
haruhi_dl/extractor/facebook.py
View file @
78551931
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment