This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
Throw a better error if the protocol is invalid
rtmp_test
Philipp Hagemeister
12 years ago
parent
99a5ae3f8e
commit
419c64b107
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
youtube_dl/InfoExtractors.py
+ 2
- 0
youtube_dl/InfoExtractors.py
View File
@ -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
:
Write
Preview
Loading…
Cancel
Save