FacebookIE: Fix regexp to recognize videos that weren't considered.
authorRogério Brito <rbrito@ime.usp.br>
Tue, 1 Nov 2011 14:07:05 +0000 (12:07 -0200)
committerRogério Brito <rbrito@ime.usp.br>
Tue, 1 Nov 2011 14:07:05 +0000 (12:07 -0200)
youtube-dl

index 4c931b40177c668bf69536b30bdc4f4169053e3e..30a02e5cd1c5a0de92a217289765e4b8786157d3 100755 (executable)
@@ -2709,7 +2709,7 @@ class DepositFilesIE(InfoExtractor):
 class FacebookIE(InfoExtractor):
        """Information Extractor for Facebook"""
 
-       _VALID_URL = r'^(?:https?://)?(?:\w+\.)?facebook\.com/video/video\.php\?(?:.*?)v=(?P<ID>\d+)(?:.*)'
+       _VALID_URL = r'^(?:https?://)?(?:\w+\.)?facebook\.com/(?:video/video|photo)\.php\?(?:.*?)v=(?P<ID>\d+)(?:.*)'
        _LOGIN_URL = 'https://login.facebook.com/login.php?m&next=http%3A%2F%2Fm.facebook.com%2Fhome.php&'
        _NETRC_MACHINE = 'facebook'
        _available_formats = ['video', 'highqual', 'lowqual']