diff --git a/sickbeard/databases/mainDB.py b/sickbeard/databases/mainDB.py index e20db240..c6880167 100644 --- a/sickbeard/databases/mainDB.py +++ b/sickbeard/databases/mainDB.py @@ -132,10 +132,10 @@ class MainSanityCheck(db.DBSanityCheck): "SELECT showid, indexerid, indexer, episode_id, season, episode FROM tv_episodes WHERE scene_season = 0 OR scene_episode = 0") for epResult in sqlResults: - indexerid = int(epResult["showid"]) - indexer = int(epResult["indexer"]) - season = int(epResult["season"]) - episode = int(epResult["episode"]) + indexerid = int(str(epResult["showid"]).encode('UTF-8')) + indexer = int(str(epResult["indexer"]).encode('UTF-8')) + season = int(str(epResult["season"]).encode('UTF-8')) + episode = int(str(epResult["episode"]).encode('UTF-8')) logger.log( u"Repairing any scene numbering issues for showid: " + str(epResult["showid"]) + u" season: " + str(