From 3d062b35105ef32dcb471105e9fc9791f72ea53d Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 7 Jun 2014 21:32:06 -0700 Subject: [PATCH] Fix for import issue with episodeCache --- sickbeard/__init__.py | 2 +- sickbeard/metadata/generic.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sickbeard/__init__.py b/sickbeard/__init__.py index 0bbd9840..f1bb4b77 100644 --- a/sickbeard/__init__.py +++ b/sickbeard/__init__.py @@ -47,8 +47,8 @@ from indexers.indexer_api import indexerApi from indexers.indexer_exceptions import indexer_shownotfound, indexer_exception, indexer_error, indexer_episodenotfound, \ indexer_attributenotfound, indexer_seasonnotfound, indexer_userabort, indexerExcepts from sickbeard.common import SD, SKIPPED, NAMING_REPEAT - from sickbeard.databases import mainDB, cache_db, failed_db +from sickbeard.tv import episodeCache from lib.configobj import ConfigObj diff --git a/sickbeard/metadata/generic.py b/sickbeard/metadata/generic.py index af542712..9734004e 100644 --- a/sickbeard/metadata/generic.py +++ b/sickbeard/metadata/generic.py @@ -32,7 +32,6 @@ from sickbeard import logger from sickbeard import encodingKludge as ek from sickbeard.exceptions import ex from sickbeard.show_name_helpers import allPossibleShowNames -from sickbeard import tv from lib.tmdb_api.tmdb_api import TMDB @@ -338,7 +337,7 @@ class GenericMetadata(): def create_season_posters(self, show_obj): if self.season_posters and show_obj: result = [] - for season, episodes in tv.episodeCache.iteritems(): # @UnusedVariable + for season, episodes in sickbeard.episodeCache.iteritems(): # @UnusedVariable if not self._has_season_poster(show_obj, season): logger.log(u"Metadata provider " + self.name + " creating season posters for " + show_obj.name, logger.DEBUG) @@ -349,7 +348,7 @@ class GenericMetadata(): def create_season_banners(self, show_obj): if self.season_banners and show_obj: result = [] - for season, episodes in tv.episodeCache.iteritems(): # @UnusedVariable + for season, episodes in sickbeard.episodeCache.iteritems(): # @UnusedVariable if not self._has_season_banner(show_obj, season): logger.log(u"Metadata provider " + self.name + " creating season banners for " + show_obj.name, logger.DEBUG)