youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 419c64b107896628a159f558abdb298117249b9a
parent 99a5ae3f8ed30ee7b6fb723232895d7836afbc2d
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Mon, 13 May 2013 19:54:07 +0200

Throw a better error if the protocol is invalid

Diffstat:
Myoutube_dl/InfoExtractors.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/InfoExtractors.py b/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: