Fix for indexer being sent as unicode when its supposed to me integer

This commit is contained in:
echel0n 2014-05-03 02:43:01 -07:00
parent 48462f4baa
commit cecd35bb5d

View file

@ -230,7 +230,7 @@ def _xem_refresh(indexer_id, indexer):
try:
logger.log(
u'Looking up XEM scene mapping for show %s on %s' % (indexer_id, sickbeard.indexerApi(indexer).name,),
u'Looking up XEM scene mapping for show %s on %s' % (indexer_id, sickbeard.indexerApi(int(indexer)).name,),
logger.DEBUG)
data = requests.get("http://thexem.de/map/all?id=%s&origin=%s&destination=scene" % (
indexer_id, sickbeard.indexerApi(indexer).config['xem_origin'],), verify=False).json()