1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-17 06:45:05 -05:00

Fix for NoneType object error

This commit is contained in:
echel0n 2014-05-03 03:41:56 -07:00
parent cb4790a213
commit 9fc07617f1
2 changed files with 5 additions and 5 deletions

View File

@ -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(str(epResult["showid"]))
indexer = int(str(epResult["indexer"]))
season = int(str(epResult["season"]))
episode = int(str(epResult["episode"]))
indexerid = int(epResult["showid"])
indexer = int(epResult["indexer"])
season = int(epResult["season"])
episode = int(epResult["episode"])
logger.log(
u"Repairing any scene numbering issues for showid: " + str(epResult["showid"]) + u" season: " + str(

View File

@ -238,7 +238,7 @@ class TVCache():
logger.log(u"Added RSS item: [" + name + "] to cache: [" + self.providerID + "]", logger.DEBUG)
return ["INSERT INTO [" + self.providerID + "] (name, season, episodes, indexerid, url, time, quality) VALUES (?,?,?,?,?,?,?)",
[name, season, episodeText, parse_result.show.indexerid, url, curTimestamp, quality]]
[name, season, episodeText, showObj.indexerid, url, curTimestamp, quality]]
def searchCache(self, episode, manualSearch=False):
neededEps = self.findNeededEpisodes(episode, manualSearch)