mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -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
|
||||
if sickbeard.CACHE_DIR: indexerConfig[indexer]['api_params']['cache'] = os.path.join(sickbeard.CACHE_DIR,
|
||||
self.name)
|
||||
# update API params
|
||||
indexerConfig[indexer]['api_params'].update(**kwargs)
|
||||
|
||||
if kwargs:
|
||||
# update API params
|
||||
indexerConfig[indexer]['api_params'].update(**kwargs)
|
||||
|
||||
# wrap the indexer API object and return it back
|
||||
self._wrapped = indexerConfig[indexer]['module'](**indexerConfig[indexer]['api_params'])
|
||||
# wrap the indexer API object and return it back
|
||||
self._wrapped = indexerConfig[indexer]['module'](*args, **indexerConfig[indexer]['api_params'])
|
||||
|
||||
def __getattr__(self, attr):
|
||||
return getattr(self._wrapped, attr)
|
||||
|
@ -615,7 +615,7 @@ class PostProcessor(object):
|
||||
episodes = [int(epObj["episodenumber"])]
|
||||
|
||||
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(
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user