Fix for import issue with episodeCache

This commit is contained in:
echel0n 2014-06-07 21:32:06 -07:00
parent 89ad4bccc3
commit 3d062b3510
2 changed files with 3 additions and 4 deletions

View file

@ -47,8 +47,8 @@ from indexers.indexer_api import indexerApi
from indexers.indexer_exceptions import indexer_shownotfound, indexer_exception, indexer_error, indexer_episodenotfound, \ from indexers.indexer_exceptions import indexer_shownotfound, indexer_exception, indexer_error, indexer_episodenotfound, \
indexer_attributenotfound, indexer_seasonnotfound, indexer_userabort, indexerExcepts indexer_attributenotfound, indexer_seasonnotfound, indexer_userabort, indexerExcepts
from sickbeard.common import SD, SKIPPED, NAMING_REPEAT from sickbeard.common import SD, SKIPPED, NAMING_REPEAT
from sickbeard.databases import mainDB, cache_db, failed_db from sickbeard.databases import mainDB, cache_db, failed_db
from sickbeard.tv import episodeCache
from lib.configobj import ConfigObj from lib.configobj import ConfigObj

View file

@ -32,7 +32,6 @@ from sickbeard import logger
from sickbeard import encodingKludge as ek from sickbeard import encodingKludge as ek
from sickbeard.exceptions import ex from sickbeard.exceptions import ex
from sickbeard.show_name_helpers import allPossibleShowNames from sickbeard.show_name_helpers import allPossibleShowNames
from sickbeard import tv
from lib.tmdb_api.tmdb_api import TMDB from lib.tmdb_api.tmdb_api import TMDB
@ -338,7 +337,7 @@ class GenericMetadata():
def create_season_posters(self, show_obj): def create_season_posters(self, show_obj):
if self.season_posters and show_obj: if self.season_posters and show_obj:
result = [] 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): if not self._has_season_poster(show_obj, season):
logger.log(u"Metadata provider " + self.name + " creating season posters for " + show_obj.name, logger.log(u"Metadata provider " + self.name + " creating season posters for " + show_obj.name,
logger.DEBUG) logger.DEBUG)
@ -349,7 +348,7 @@ class GenericMetadata():
def create_season_banners(self, show_obj): def create_season_banners(self, show_obj):
if self.season_banners and show_obj: if self.season_banners and show_obj:
result = [] 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): if not self._has_season_banner(show_obj, season):
logger.log(u"Metadata provider " + self.name + " creating season banners for " + show_obj.name, logger.log(u"Metadata provider " + self.name + " creating season banners for " + show_obj.name,
logger.DEBUG) logger.DEBUG)