]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[facebook] Support mobile URLs (closes #8638)
authorYen Chi Hsuan <yan12125@gmail.com>
Tue, 23 Feb 2016 05:17:24 +0000 (13:17 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Tue, 23 Feb 2016 05:17:24 +0000 (13:17 +0800)
youtube_dl/extractor/facebook.py

index 0a9a5ca718ce171ef211fee6f04b4685452add1e..d2ff38140fe047c8dde4e91669db38e1975b6b86 100644 (file)
@@ -34,8 +34,9 @@ class FacebookIE(InfoExtractor):
                                 video/video\.php|
                                 photo\.php|
                                 video\.php|
-                                video/embed
-                            )\?(?:.*?)(?:v|video_id)=|
+                                video/embed|
+                                story\.php
+                            )\?(?:.*?)(?:v|video_id|story_fbid)=|
                             [^/]+/videos/(?:[^/]+/)?
                         )|
                     facebook:
@@ -92,6 +93,9 @@ class FacebookIE(InfoExtractor):
     }, {
         'url': 'facebook:544765982287235',
         'only_matching': True,
+    }, {
+        'url': 'https://m.facebook.com/story.php?story_fbid=1035862816472149&id=116132035111903',
+        'only_matching': True,
     }]
 
     def _login(self):