1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 03:22:22 -05:00

Fixes issues with scene converting

This commit is contained in:
echel0n 2014-04-28 22:41:40 -07:00
parent 51f691eeb2
commit 96a2c047a0

View File

@ -189,11 +189,17 @@ class TVShow(object):
for curSeason in self.episodes:
for curEp in self.episodes[curSeason]:
myEp = self.episodes[curSeason][curEp]
if not myEp:
try:
scene_season = myEp.scene_season
scene_episode = myEp.scene_episode
except:continue
if season != scene_season or episode != scene_episode:
continue
if season == myEp.scene_season and episode == myEp.scene_episode:
season = myEp.season
episode = myEp.episode
# found correct ep info
season = int(myEp.season)
episode = int(myEp.episode)
if not season in self.episodes:
self.episodes[season] = {}