|
|
@ -105,7 +105,7 @@ class FacebookIE(InfoExtractor):
|
|
|
|
login_results, 'login error', default=None, group='error')
|
|
|
|
login_results, 'login error', default=None, group='error')
|
|
|
|
if error:
|
|
|
|
if error:
|
|
|
|
raise ExtractorError('Unable to login: %s' % error, expected=True)
|
|
|
|
raise ExtractorError('Unable to login: %s' % error, expected=True)
|
|
|
|
self._downloader.report_warning('unable to log in: bad username/password, or exceded login rate limit (~3/min). Check credentials or wait.')
|
|
|
|
self._downloader.report_warning('unable to log in: bad username/password, or exceeded login rate limit (~3/min). Check credentials or wait.')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
fb_dtsg = self._search_regex(
|
|
|
|
fb_dtsg = self._search_regex(
|
|
|
@ -126,7 +126,7 @@ class FacebookIE(InfoExtractor):
|
|
|
|
check_response = self._download_webpage(check_req, None,
|
|
|
|
check_response = self._download_webpage(check_req, None,
|
|
|
|
note='Confirming login')
|
|
|
|
note='Confirming login')
|
|
|
|
if re.search(r'id="checkpointSubmitButton"', check_response) is not None:
|
|
|
|
if re.search(r'id="checkpointSubmitButton"', check_response) is not None:
|
|
|
|
self._downloader.report_warning('Unable to confirm login, you have to login in your brower and authorize the login.')
|
|
|
|
self._downloader.report_warning('Unable to confirm login, you have to login in your browser and authorize the login.')
|
|
|
|
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
|
|
|
|
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
|
|
|
|
self._downloader.report_warning('unable to log in: %s' % error_to_compat_str(err))
|
|
|
|
self._downloader.report_warning('unable to log in: %s' % error_to_compat_str(err))
|
|
|
|
return
|
|
|
|
return
|
|
|
|