]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[facebook] Support videos in groups
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 11 Mar 2016 08:20:27 +0000 (16:20 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 11 Mar 2016 08:20:27 +0000 (16:20 +0800)
Viewing/Downloading videos in groups requires logging in, even for
those in public groups.

Fixes #6951.

youtube_dl/extractor/facebook.py

index 5e8589479d4ce5ae57240c4432494b8348b5523a..f5bbd39d2d0e90996c118e3fae325034fc2bbb6d 100644 (file)
@@ -38,7 +38,8 @@ class FacebookIE(InfoExtractor):
                                 story\.php
                             )\?(?:.*?)(?:v|video_id|story_fbid)=|
                             [^/]+/videos/(?:[^/]+/)?|
-                            [^/]+/posts/
+                            [^/]+/posts/|
+                            groups/[^/]+/permalink/
                         )|
                     facebook:
                 )
@@ -123,6 +124,9 @@ class FacebookIE(InfoExtractor):
     }, {
         'url': 'facebook:544765982287235',
         'only_matching': True,
+    }, {
+        'url': 'https://www.facebook.com/groups/164828000315060/permalink/764967300301124/',
+        'only_matching': True,
     }]
 
     def _login(self):