projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a20e4c2
)
Use quote_plus instead of manually replacing spaces by plus signs
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Mon, 2 Feb 2009 19:29:44 +0000
(20:29 +0100)
committer
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:23:48 +0000
(11:23 +0100)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 29afd930f0782ccfc01b74150e9aefbe885307c7..3e7f13956d534fd76478a68594f31f8e552e62ed 100755
(executable)
--- a/
youtube-dl
+++ b/
youtube-dl
@@
-776,7
+776,7
@@
class YoutubeSearchIE(InfoExtractor):
while True:
self.report_download_page(query, pagenum)
- result_url = self._TEMPLATE_URL % (urllib.quote
(query.replace(' ', '+')
), pagenum)
+ result_url = self._TEMPLATE_URL % (urllib.quote
_plus(query
), pagenum)
request = urllib2.Request(result_url, None, std_headers)
try:
page = urllib2.urlopen(request).read()