From 038d891c737128b9c8d1cf622c7c66b597269561 Mon Sep 17 00:00:00 2001 From: Dustyn Gibson <miigotu@gmail.com> Date: Sun, 29 Nov 2015 14:39:25 -0800 Subject: [PATCH] .decode instead of unicode() incase string is already unicode Fixes https://github.com/SickRage/sickrage-issues/issues/105 --- sickbeard/webserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 82c55155e..79d20f81c 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -1489,7 +1489,7 @@ class Home(WebRoot): showObj.rls_ignore_words = rls_ignore_words.strip() showObj.rls_require_words = rls_require_words.strip() - location = unicode(location, 'UTF-8') + location = location.decode('UTF-8') # if we change location clear the db of episodes, change it, write to db, and rescan if os.path.normpath(showObj._location) != os.path.normpath(location): logger.log(os.path.normpath(showObj._location) + " != " + os.path.normpath(location), logger.DEBUG) -- GitLab