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):
""" Return the Proxyfied URL of the page """
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)
return url