Browse Source

Merge pull request #7163 from lewang/patch-2

Ignore UTF-8 decode errors
pull/3162/merge
Ruud Burger 8 years ago
committed by GitHub
parent
commit
29df304df7
  1. 2
      couchpotato/core/media/movie/providers/automation/base.py

2
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:

Loading…
Cancel
Save