X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Ffacebook.py;h=f7cf700b5df8ecbcd714fd23db3dc7ff477adb73;hb=cf0c5fa3a1a6a03b56bbcdfc17dd50637a77724c;hp=a713628b2cfc497232347bc7aa64fe1d8f133536;hpb=5375d7ad8494a130b13887859b9af35159698489;p=youtube-dl.git diff --git a/youtube_dl/extractor/facebook.py b/youtube_dl/extractor/facebook.py index a713628b2..f7cf700b5 100644 --- a/youtube_dl/extractor/facebook.py +++ b/youtube_dl/extractor/facebook.py @@ -20,7 +20,7 @@ from ..utils import ( class FacebookIE(InfoExtractor): _VALID_URL = r'''(?x) https?://(?:\w+\.)?facebook\.com/ - (?:[^#?]*\#!/)? + (?:[^#]*?\#!/)? (?:video/video\.php|photo\.php|video/embed)\?(?:.*?) (?:v|video_id)=(?P[0-9]+) (?:.*)''' @@ -76,9 +76,8 @@ class FacebookIE(InfoExtractor): check_form = { 'fb_dtsg': self._search_regex(r'name="fb_dtsg" value="(.+?)"', login_results, 'fb_dtsg'), - 'nh': self._search_regex(r'name="nh" value="(\w*?)"', login_results, 'nh'), + 'h': self._search_regex(r'name="h" value="(\w*?)"', login_results, 'h'), 'name_action_selected': 'dont_save', - 'submit[Continue]': self._search_regex(r']+value="(.*?)"[^>]+name="submit\[Continue\]"', login_results, 'continue'), } check_req = compat_urllib_request.Request(self._CHECKPOINT_URL, urlencode_postdata(check_form)) check_req.add_header('Content-Type', 'application/x-www-form-urlencoded')