From 293c10429ceb866f61182ae850b3cf81a4ceaa4c Mon Sep 17 00:00:00 2001 From: joshjowen Date: Mon, 23 Feb 2015 16:29:37 +1000 Subject: [PATCH] UTF-8 encode url that is used in urllib.quote_plus(url) to ensure unicode charachters don't cause a key error --- sickbeard/providers/generic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/providers/generic.py b/sickbeard/providers/generic.py index be602a5b..a835dad7 100644 --- a/sickbeard/providers/generic.py +++ b/sickbeard/providers/generic.py @@ -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 \ No newline at end of file + return regx