mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-13 02:23:18 +00:00
Removed else statements from loops without breaks
This commit is contained in:
parent
98c86304fe
commit
cc899931ed
4 changed files with 12 additions and 11 deletions
|
|
@ -242,8 +242,8 @@ class Views(object):
|
|||
temp_view['Media'] = media
|
||||
self.add_playlist(playlist_path, temp_view, True)
|
||||
self.add_nodes(node_path, temp_view, True)
|
||||
else: # Compensate for the duplicate.
|
||||
index += 1
|
||||
|
||||
index += 1 # Compensate for the duplicate.
|
||||
else:
|
||||
if view['Media'] in ('movies', 'tvshows', 'musicvideos'):
|
||||
self.add_playlist(playlist_path, view)
|
||||
|
|
@ -743,9 +743,10 @@ class Views(object):
|
|||
temp_view['Name'] = "%s (%s)" % (view['Name'], translate(media))
|
||||
self.window_node(index, temp_view, *node)
|
||||
self.window_wnode(windex, temp_view, *node)
|
||||
else: # Add one to compensate for the duplicate.
|
||||
index += 1
|
||||
windex += 1
|
||||
|
||||
# Add one to compensate for the duplicate.
|
||||
index += 1
|
||||
windex += 1
|
||||
else:
|
||||
for node in NODES[view['Media']]:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue