diff --git a/data/interfaces/default/comingEpisodes.tmpl b/data/interfaces/default/comingEpisodes.tmpl index bb6d78ccf701681e39d6fc311dadb0b09a7070ad..da74c796f5878c9da884a2929aa7d9bbc6a97fce 100644 --- a/data/interfaces/default/comingEpisodes.tmpl +++ b/data/interfaces/default/comingEpisodes.tmpl @@ -219,7 +219,7 @@ Custom #set $show_div = "ep_listing listing_toofar" #set $too_late_header = True #elif $cur_ep_airdate >= $today and $cur_ep_airdate < $next_week: - <br /><h1 class="day">$datetime.date.fromordinal($cur_ep_airdate).strftime("%A")</h1> + <br /><h1 class="day">$datetime.date.fromordinal($cur_ep_airdate).strftime("%A").decode('utf-8')</h1> #if $cur_ep_airdate == $today: #set $show_div = "ep_listing listing_current" #else: diff --git a/lib/hachoir_core/i18n.py b/lib/hachoir_core/i18n.py index 42d37a1c9b8ea391539481e795743108845f3b77..8babf8e98d3df79d6f01a1dad326e1ef3ba303d3 100644 --- a/lib/hachoir_core/i18n.py +++ b/lib/hachoir_core/i18n.py @@ -133,7 +133,7 @@ def _initGettext(): return (_dummy_gettext, _dummy_ngettext) # Gettext variables - package = hachoir_core.PACKAGE + package = lib.hachoir_core.PACKAGE locale_dir = path.join(path.dirname(__file__), "..", "locale") # Initialize gettext module diff --git a/lib/simplejson/scanner.py b/lib/simplejson/scanner.py index adbc6ec979c9f05d54e1556a6fd007499a953ee6..866edc045716ad3ba10dab94789e82f67479de56 100644 --- a/lib/simplejson/scanner.py +++ b/lib/simplejson/scanner.py @@ -2,7 +2,7 @@ """ import re try: - from simplejson._speedups import make_scanner as c_make_scanner + from lib.simplejson._speedups import make_scanner as c_make_scanner except ImportError: c_make_scanner = None diff --git a/sickbeard/image_cache.py b/sickbeard/image_cache.py index 091e77b135419d5edb04cb872e2702d2e315428d..49cd7c7501940369bbbfcff941bc5193a770df32 100644 --- a/sickbeard/image_cache.py +++ b/sickbeard/image_cache.py @@ -46,10 +46,14 @@ class ImageCache: return ek.ek(os.path.join, self._cache_dir(), banner_file_name) def has_poster(self, tvdb_id): - return ek.ek(os.path.isfile, self.poster_path(tvdb_id)) + poster_path = self.poster_path(tvdb_id) + logger.log(u"Checking if file "+str(poster_path)+" exists", logger.DEBUG) + return ek.ek(os.path.isfile, poster_path) def has_banner(self, tvdb_id): - return ek.ek(os.path.isfile, self.banner_path(tvdb_id)) + banner_path = self.banner_path(tvdb_id) + logger.log(u"Checking if file "+str(banner_path)+" exists", logger.DEBUG) + return ek.ek(os.path.isfile, banner_path) BANNER = 1 POSTER = 2 @@ -117,6 +121,7 @@ class ImageCache: } if not need_images[self.POSTER] and not need_images[self.BANNER]: + logger.log(u"No new cache images needed, not retrieving new ones") return # check the show dir for images and use them