From c1705716fa068443f6bfebe77b0a6e4f2f4bfbbb Mon Sep 17 00:00:00 2001 From: Le Wang Date: Mon, 9 Jan 2017 22:03:57 -0500 Subject: [PATCH] Ignore UTF-8 decode errors This fixes a backtrace I kept getting that stopped couchpotato from working at all. --- couchpotato/core/media/movie/providers/automation/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/media/movie/providers/automation/base.py b/couchpotato/core/media/movie/providers/automation/base.py index e606e7f..8282dd7 100644 --- a/couchpotato/core/media/movie/providers/automation/base.py +++ b/couchpotato/core/media/movie/providers/automation/base.py @@ -45,7 +45,7 @@ class Automation(AutomationBase): def search(self, name, year = None, imdb_only = False): - cache_name = name.decode('utf-8').encode('ascii', 'ignore') + cache_name = name.decode('utf-8', 'ignore').encode('ascii', 'ignore') prop_name = 'automation.cached.%s.%s' % (cache_name, year) cached_imdb = Env.prop(prop_name, default = False) if cached_imdb and imdb_only: