1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

UTF-8 encode url that is used in urllib.quote_plus(url) to ensure unicode charachters don't cause a key error

This commit is contained in:
joshjowen 2015-02-23 16:29:37 +10:00
parent 4db476b2da
commit 293c10429c

View File

@ -504,7 +504,7 @@ class ProviderProxy:
def _buildURL(self, url): def _buildURL(self, url):
""" Return the Proxyfied URL of the page """ """ Return the Proxyfied URL of the page """
if self.isEnabled(): if self.isEnabled():
url = self.getProxyURL() + self.param + urllib.quote_plus(url) + self.option url = self.getProxyURL() + self.param + urllib.quote_plus(url.encode('UTF-8')) + self.option
logger.log(u"Proxified URL: " + url, logger.DEBUG) logger.log(u"Proxified URL: " + url, logger.DEBUG)
return url return url
@ -517,4 +517,4 @@ class ProviderProxy:
else: else:
regx = re.sub('//1', '', regx) regx = re.sub('//1', '', regx)
return regx return regx