Commit 0d8b4d1e authored by echel0n's avatar echel0n
Browse files

Small memory footprint improvement

parent db0e196b
# Changelog
- * a264d26 - 2017-12-10: Release v9.2.61
- * 3ceb533 - 2017-12-10: Small memory footprint improvement
- * f2d7dc6 - 2017-12-10: Release v9.2.61
- * 656a038 - 2017-12-10: Overall stats now only displayed for main shows page, helps reduce overhead
- * 75fa296 - 2017-12-10: Release v9.2.57
- * 6c4534b - 2017-12-10: Fixed TorrentRSSFeed issues
......
......@@ -577,7 +577,7 @@ class QueueItemUpdate(ShowQueueItem):
sickrage.app.log.error("Unable to get info from " + IndexerApi(
self.show.indexer).name + ", the show info will not be refreshed: {}".format(e.message))
if IndexerEpList is None:
if not IndexerEpList:
sickrage.app.log.error("No data returned from " + IndexerApi(
self.show.indexer).name + ", unable to update this show")
else:
......@@ -592,10 +592,8 @@ class QueueItemUpdate(ShowQueueItem):
for curEpisode in DBEpList[curSeason]:
sickrage.app.log.info(
"Permanently deleting episode " + str(curSeason) + "x" + str(curEpisode) + " from the database")
curEp = self.show.getEpisode(curSeason, curEpisode)
try:
curEp.deleteEpisode()
self.show.getEpisode(curSeason, curEpisode).deleteEpisode()
except EpisodeDeletedException:
pass
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment