From aa94a6d3159af8333b56d16f3ed0bc3a164a882a Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Fri, 20 Dec 2013 17:05:28 +0100 Subject: [aparat] Add support (Fixes #2012) --- youtube_dl/extractor/common.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'youtube_dl/extractor/common.py') diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index f89df57ed..ba46a7bc7 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -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)) -- cgit v1.2.3