mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 05:33:37 +00:00
Fix for import issue with episodeCache
This commit is contained in:
parent
89ad4bccc3
commit
3d062b3510
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue