projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[vlive] Add support for channels
[youtube-dl]
/
youtube_dl
/
extractor
/
facebook.py
diff --git
a/youtube_dl/extractor/facebook.py
b/youtube_dl/extractor/facebook.py
index 4de21baeb9f596dfb538d8451620d38a795cc9f6..c0a7fc7d8fefaf121ba4682471355674e9088ea1 100644
(file)
--- a/
youtube_dl/extractor/facebook.py
+++ b/
youtube_dl/extractor/facebook.py
@@
-27,7
+27,7
@@
class FacebookIE(InfoExtractor):
_VALID_URL = r'''(?x)
(?:
https?://
_VALID_URL = r'''(?x)
(?:
https?://
- (?:[\w-]+\.)?
facebook\.com
/
+ (?:[\w-]+\.)?
(?:facebook\.com|facebookcorewwwi\.onion)
/
(?:[^#]*?\#!/)?
(?:
(?:
(?:[^#]*?\#!/)?
(?:
(?:
@@
-150,6
+150,9
@@
class FacebookIE(InfoExtractor):
}, {
'url': 'https://zh-hk.facebook.com/peoplespower/videos/1135894589806027/',
'only_matching': True,
}, {
'url': 'https://zh-hk.facebook.com/peoplespower/videos/1135894589806027/',
'only_matching': True,
+ }, {
+ 'url': 'https://www.facebookcorewwwi.onion/video.php?v=274175099429670',
+ 'only_matching': True,
}]
@staticmethod
}]
@staticmethod
@@
-257,6
+260,8
@@
class FacebookIE(InfoExtractor):
raise ExtractorError(
'The video is not available, Facebook said: "%s"' % m_msg.group(1),
expected=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')
else:
raise ExtractorError('Cannot parse data')