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:
parent
cb4790a213
commit
9fc07617f1
@ -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")
|
"SELECT showid, indexerid, indexer, episode_id, season, episode FROM tv_episodes WHERE scene_season = 0 OR scene_episode = 0")
|
||||||
|
|
||||||
for epResult in sqlResults:
|
for epResult in sqlResults:
|
||||||
indexerid = int(str(epResult["showid"]))
|
indexerid = int(epResult["showid"])
|
||||||
indexer = int(str(epResult["indexer"]))
|
indexer = int(epResult["indexer"])
|
||||||
season = int(str(epResult["season"]))
|
season = int(epResult["season"])
|
||||||
episode = int(str(epResult["episode"]))
|
episode = int(epResult["episode"])
|
||||||
|
|
||||||
logger.log(
|
logger.log(
|
||||||
u"Repairing any scene numbering issues for showid: " + str(epResult["showid"]) + u" season: " + str(
|
u"Repairing any scene numbering issues for showid: " + str(epResult["showid"]) + u" season: " + str(
|
||||||
|
@ -238,7 +238,7 @@ class TVCache():
|
|||||||
|
|
||||||
logger.log(u"Added RSS item: [" + name + "] to cache: [" + self.providerID + "]", logger.DEBUG)
|
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 (?,?,?,?,?,?,?)",
|
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):
|
def searchCache(self, episode, manualSearch=False):
|
||||||
neededEps = self.findNeededEpisodes(episode, manualSearch)
|
neededEps = self.findNeededEpisodes(episode, manualSearch)
|
||||||
|
Loading…
Reference in New Issue
Block a user