Commit 2e40a978 authored by echel0n's avatar echel0n

Fixed #SICKRAGE-APP-4C2 - 'set' object has no attribute 'index' when deleting a show

parent a8e48962
......@@ -672,7 +672,7 @@ class TVEpisode(object):
# delete myself from show episode cache
try:
sickrage.app.log.debug("Deleting %s S%02dE%02d from the shows episode cache" % (self.show.name, self.season or 0, self.episode or 0))
del self.show.episodes[self.show.episodes.index(self)]
del self.show.episodes[list(self.show.episodes).index(self)]
except (IndexError, ValueError) as e:
pass
......
Markdown is supported
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