projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b4900
)
[facebook] Detect login required error message
author
Sergey M․
<dstftw@gmail.com>
Sat, 10 Dec 2016 18:40:30 +0000
(
01:40
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 10 Dec 2016 18:40:30 +0000
(
01:40
+0700)
youtube_dl/extractor/facebook.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/facebook.py
b/youtube_dl/extractor/facebook.py
index 4de21baeb9f596dfb538d8451620d38a795cc9f6..56a8582b4db105f109f34d6d92bdd4ceae8b3d01 100644
(file)
--- 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')