Fix else clauses in for loops
This commit is contained in:
parent
51e2d87a2e
commit
2a8d288a5b
1 changed files with 11 additions and 15 deletions
|
@ -1189,7 +1189,6 @@ class TVShows(Items):
|
|||
v.KODI_TYPE_SEASON)
|
||||
for season in seasons:
|
||||
self.removeSeason(season[1])
|
||||
else:
|
||||
# Delete plex season entries
|
||||
plex_db.removeItems_byParentId(showid,
|
||||
v.KODI_TYPE_SEASON)
|
||||
|
@ -1208,11 +1207,9 @@ class TVShows(Items):
|
|||
seasonid, v.KODI_TYPE_EPISODE)
|
||||
for episode in season_episodes:
|
||||
self.removeEpisode(episode[1], episode[2])
|
||||
else:
|
||||
# Remove plex episodes
|
||||
plex_db.removeItems_byParentId(seasonid,
|
||||
v.KODI_TYPE_EPISODE)
|
||||
else:
|
||||
# Remove plex seasons
|
||||
plex_db.removeItems_byParentId(kodiid,
|
||||
v.KODI_TYPE_SEASON)
|
||||
|
@ -1228,7 +1225,6 @@ class TVShows(Items):
|
|||
v.KODI_TYPE_EPISODE)
|
||||
for episode in season_episodes:
|
||||
self.removeEpisode(episode[1], episode[2])
|
||||
else:
|
||||
# Remove plex episodes
|
||||
plex_db.removeItems_byParentId(kodiid, v.KODI_TYPE_EPISODE)
|
||||
|
||||
|
|
Loading…
Reference in a new issue