diff options
author | Ricardo Garcia <sarbalap+freshmeat@gmail.com> | 2009-02-02 20:29:44 +0100 |
---|---|---|
committer | Ricardo Garcia <sarbalap+freshmeat@gmail.com> | 2010-10-31 11:23:48 +0100 |
commit | a9633f14577db35ce1bed3f8d623a7be8f287e87 (patch) | |
tree | a254d6893ebfd6dbacf93fe3b0d4556016bd657f | |
parent | a20e4c2f9689ab8970d6d918a97d3e4ce598e33b (diff) |
Use quote_plus instead of manually replacing spaces by plus signs
-rwxr-xr-x | youtube-dl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl index 29afd930f..3e7f13956 100755 --- 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() |