1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-14 02:57:47 +01:00

[generic] Ignore stupid HTTP servers (#1284)

This commit is contained in:
Philipp Hagemeister 2013-08-21 04:31:57 +02:00
parent 79cb25776f
commit 3093468977

View File

@ -107,8 +107,13 @@ class GenericIE(InfoExtractor):
return new_url
def _real_extract(self, url):
try:
new_url = self._test_redirect(url)
if new_url: return [self.url_result(new_url)]
if new_url:
return [self.url_result(new_url)]
except compat_urllib_error.HTTPError:
# This may be a stupid server that doesn't like HEAD, our UA, or so
pass
video_id = url.split('/')[-1]
try: