[aparat] Add support (Fixes #2012)

This commit is contained in:
Philipp Hagemeister 2013-12-20 17:05:28 +01:00
parent 768df74538
commit aa94a6d315
5 changed files with 73 additions and 6 deletions

View file

@ -170,6 +170,8 @@ class InfoExtractor(object):
try:
return self._downloader.urlopen(url_or_request)
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
if errnote is False:
return False
if errnote is None:
errnote = u'Unable to download webpage'
errmsg = u'%s: %s' % (errnote, compat_str(err))