projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6501a06
)
xvideos: Normalize the URL or it will fail with some inputs.
author
Rogério Brito
<rbrito@ime.usp.br>
Tue, 18 Oct 2011 20:38:17 +0000
(18:38 -0200)
committer
Rogério Brito
<rbrito@ime.usp.br>
Tue, 18 Oct 2011 20:38:17 +0000
(18:38 -0200)
For instance, if we give it <www.xvideos.com/video1384059>, we would
end up passing that to urllib2, which would complain about an unknown
URL type.
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 450da8ebdbeb8f2e8030bcd9be70f6c1149ff6a5..f8e9095aee49bb1ff552eabff828388bc477b63d 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-3413,7
+3413,7
@@
class XVideosIE(InfoExtractor):
self.report_webpage(video_id)
- request = urllib2.Request(
url
)
+ request = urllib2.Request(
r'http://www.xvideos.com/video' + video_id
)
try:
webpage = urllib2.urlopen(request).read()
except (urllib2.URLError, httplib.HTTPException, socket.error), err: