Fix else clauses in for loops

This commit is contained in:
tomkat83 2017-05-08 19:32:12 +02:00
parent 51e2d87a2e
commit 2a8d288a5b

View file

@ -1189,7 +1189,6 @@ class TVShows(Items):
v.KODI_TYPE_SEASON) v.KODI_TYPE_SEASON)
for season in seasons: for season in seasons:
self.removeSeason(season[1]) self.removeSeason(season[1])
else:
# Delete plex season entries # Delete plex season entries
plex_db.removeItems_byParentId(showid, plex_db.removeItems_byParentId(showid,
v.KODI_TYPE_SEASON) v.KODI_TYPE_SEASON)
@ -1208,11 +1207,9 @@ class TVShows(Items):
seasonid, v.KODI_TYPE_EPISODE) seasonid, v.KODI_TYPE_EPISODE)
for episode in season_episodes: for episode in season_episodes:
self.removeEpisode(episode[1], episode[2]) self.removeEpisode(episode[1], episode[2])
else:
# Remove plex episodes # Remove plex episodes
plex_db.removeItems_byParentId(seasonid, plex_db.removeItems_byParentId(seasonid,
v.KODI_TYPE_EPISODE) v.KODI_TYPE_EPISODE)
else:
# Remove plex seasons # Remove plex seasons
plex_db.removeItems_byParentId(kodiid, plex_db.removeItems_byParentId(kodiid,
v.KODI_TYPE_SEASON) v.KODI_TYPE_SEASON)
@ -1228,7 +1225,6 @@ class TVShows(Items):
v.KODI_TYPE_EPISODE) v.KODI_TYPE_EPISODE)
for episode in season_episodes: for episode in season_episodes:
self.removeEpisode(episode[1], episode[2]) self.removeEpisode(episode[1], episode[2])
else:
# Remove plex episodes # Remove plex episodes
plex_db.removeItems_byParentId(kodiid, v.KODI_TYPE_EPISODE) plex_db.removeItems_byParentId(kodiid, v.KODI_TYPE_EPISODE)