aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRogério Brito <[email protected]>2011-11-01 12:07:05 -0200
committerRogério Brito <[email protected]>2011-11-01 12:07:05 -0200
commit857e5f329ae03ae9710ce926b8fbed25513ef7d9 (patch)
tree52a7a737e0389fff60590b6551a35ec85da0344f
parent053419cd245e4af1330bf970a0b919c71cdb3a94 (diff)
downloadyoutube-dl-857e5f329ae03ae9710ce926b8fbed25513ef7d9.tar.gz
youtube-dl-857e5f329ae03ae9710ce926b8fbed25513ef7d9.zip
FacebookIE: Fix regexp to recognize videos that weren't considered.
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 4c931b401..30a02e5cd 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -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']