From 30918999f5fa3e5fc11e5b83f2f4aef0358965a0 Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Thu, 15 Dec 2016 01:01:14 +0800 Subject: [PATCH] [facebook] Recognize .onion URLs (closes #11443) --- ChangeLog | 5 +++++ youtube_dl/extractor/facebook.py | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3909e350a..428ade1e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +version + +Extractors ++ [facebook] Recognize .onion URLs (#11443) + version 2016.12.12 Core 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 -- 2.39.5