Skip to content

Commit

Permalink
Playlists: Fix shuffle/play button behaviour
Browse files Browse the repository at this point in the history
bump theme version
  • Loading branch information
pannal committed Oct 5, 2024
1 parent f1974b0 commit 37ec88c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@


DEF_THEME = "modern-colored"
THEME_VERSION = 24
THEME_VERSION = 27

xbmc.log('script.plex: Kodi {0}.{1} (build {2})'.format(KODI_VERSION_MAJOR, KODI_VERSION_MINOR, KODI_BUILD_NUMBER),
xbmc.LOGINFO)
Expand Down
6 changes: 3 additions & 3 deletions lib/windows/playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ def onClick(self, controlID):
elif controlID == self.PLAYER_STATUS_BUTTON_ID:
self.showAudioPlayer()
elif controlID == self.PLAY_BUTTON_ID:
self.playlistListClicked(no_item=True, shuffle=False)
self.playlistListClicked(no_item=True, shuffle=False, play=True)
elif controlID == self.SHUFFLE_BUTTON_ID:
self.playlistListClicked(no_item=True, shuffle=True)
self.playlistListClicked(no_item=True, shuffle=True, play=True)
elif controlID == self.OPTIONS_BUTTON_ID:
self.optionsButtonClicked()
elif controlID == self.SEARCH_BUTTON_ID:
Expand Down Expand Up @@ -211,7 +211,7 @@ def playlistListClicked(self, no_item=False, shuffle=False, resume=None, play=Fa
opener.open(pq)
elif self.playlist.playlistType == 'video':
if not util.addonSettings.playlistVisitMedia or play:
if resume is None and bool(mli.dataSource.viewOffset.asInt()):
if resume is None and mli and bool(mli.dataSource.viewOffset.asInt()):
return self.plItemPlaybackMenu(select_choice='resume')

if self.playlist.leafCount.asInt() <= PLAYLIST_INITIAL_SIZE:
Expand Down

0 comments on commit 37ec88c

Please sign in to comment.