Browse Source

Merge pull request #7097 from thetownfool/master

issue with none ascii chars in title name. decode to utf-8 and encode…
pull/7128/head
Ruud Burger 9 years ago
committed by Ruud
parent
commit
b9924c0472
  1. 3
      couchpotato/core/media/movie/providers/automation/base.py

3
couchpotato/core/media/movie/providers/automation/base.py

@ -45,7 +45,8 @@ class Automation(AutomationBase):
def search(self, name, year = None, imdb_only = False):
prop_name = 'automation.cached.%s.%s' % (name, year)
cache_name = name.decode('utf-8').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:
return cached_imdb

Loading…
Cancel
Save