mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-17 14:55:07 -05:00
Fixed issue with auto-indexer detection in post-processing code
This commit is contained in:
parent
e62250d63b
commit
381f2e9e1a
@ -34,13 +34,11 @@ class indexerApi(object):
|
|||||||
# set cache if exists
|
# set cache if exists
|
||||||
if sickbeard.CACHE_DIR: indexerConfig[indexer]['api_params']['cache'] = os.path.join(sickbeard.CACHE_DIR,
|
if sickbeard.CACHE_DIR: indexerConfig[indexer]['api_params']['cache'] = os.path.join(sickbeard.CACHE_DIR,
|
||||||
self.name)
|
self.name)
|
||||||
|
|
||||||
if kwargs:
|
|
||||||
# update API params
|
# update API params
|
||||||
indexerConfig[indexer]['api_params'].update(**kwargs)
|
indexerConfig[indexer]['api_params'].update(**kwargs)
|
||||||
|
|
||||||
# wrap the indexer API object and return it back
|
# wrap the indexer API object and return it back
|
||||||
self._wrapped = indexerConfig[indexer]['module'](**indexerConfig[indexer]['api_params'])
|
self._wrapped = indexerConfig[indexer]['module'](*args, **indexerConfig[indexer]['api_params'])
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
return getattr(self._wrapped, attr)
|
return getattr(self._wrapped, attr)
|
||||||
|
@ -615,7 +615,7 @@ class PostProcessor(object):
|
|||||||
episodes = [int(epObj["episodenumber"])]
|
episodes = [int(epObj["episodenumber"])]
|
||||||
|
|
||||||
self._log(u"Got season " + str(season) + " episodes " + str(episodes), logger.DEBUG)
|
self._log(u"Got season " + str(season) + " episodes " + str(episodes), logger.DEBUG)
|
||||||
except sickbeard.indexer_episodenotfound, e:
|
except (KeyError, sickbeard.indexer_episodenotfound), e:
|
||||||
self._log(u"Unable to find episode with date " + str(episodes[0]) + u" for show " + str(
|
self._log(u"Unable to find episode with date " + str(episodes[0]) + u" for show " + str(
|
||||||
indexer_id) + u", skipping", logger.DEBUG)
|
indexer_id) + u", skipping", logger.DEBUG)
|
||||||
# we don't want to leave dates in the episode list if we couldn't convert them to real episode numbers
|
# we don't want to leave dates in the episode list if we couldn't convert them to real episode numbers
|
||||||
|
Loading…
Reference in New Issue
Block a user