Throw a better error if the protocol is invalid

master
Philipp Hagemeister 11 years ago
parent 99a5ae3f8e
commit 419c64b107
  1. 2
      youtube_dl/InfoExtractors.py

@ -1304,6 +1304,8 @@ class GenericIE(InfoExtractor):
opener.add_handler(handler())
response = opener.open(HeadRequest(url))
if response is None:
raise ExtractorError(u'Invalid URL protocol')
new_url = response.geturl()
if url == new_url:

Loading…
Cancel
Save