aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/facebook.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-12-15 01:01:14 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-12-15 01:04:49 +0800
commit30918999f5fa3e5fc11e5b83f2f4aef0358965a0 (patch)
treec293b382389ab5cbe4abc136fff6dd06cd688063 /youtube_dl/extractor/facebook.py
parent069f9183025597d7ef5fe152b261e7de701ec260 (diff)
[facebook] Recognize .onion URLs (closes #11443)
Diffstat (limited to 'youtube_dl/extractor/facebook.py')
-rw-r--r--youtube_dl/extractor/facebook.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py
index 56a8582b4..c0a7fc7d8 100644
--- a/youtube_dl/extractor/facebook.py
+++ b/youtube_dl/extractor/facebook.py
@@ -27,7 +27,7 @@ class FacebookIE(InfoExtractor):
_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://www.facebookcorewwwi.onion/video.php?v=274175099429670',
+ 'only_matching': True,
}]
@staticmethod