mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 14:37:43 +01:00
Use quote_plus instead of manually replacing spaces by plus signs
This commit is contained in:
parent
a20e4c2f96
commit
a9633f1457
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user