]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[facebook] Recognize .onion URLs (closes #11443)
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 14 Dec 2016 17:01:14 +0000 (01:01 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 14 Dec 2016 17:04:49 +0000 (01:04 +0800)
ChangeLog
youtube_dl/extractor/facebook.py

index 3909e350af8a5fb9319a39449df8ed09154eedc8..428ade1e6e140ecda03c0e2fa81d476763c27605 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+version <unreleased>
+
+Extractors
++ [facebook] Recognize .onion URLs (#11443)
+
 version 2016.12.12
 
 Core
index 56a8582b4db105f109f34d6d92bdd4ceae8b3d01..c0a7fc7d8fefaf121ba4682471355674e9088ea1 100644 (file)
@@ -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