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:
parent
4db476b2da
commit
293c10429c
@ -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
|
||||
@ -517,4 +517,4 @@ class ProviderProxy:
|
||||
else:
|
||||
regx = re.sub('//1', '', regx)
|
||||
|
||||
return regx
|
||||
return regx
|
||||
|
Loading…
Reference in New Issue
Block a user