mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
Don't clear playlist if busy spinner is active
This commit is contained in:
parent
6db2bd75ce
commit
ff6bacf415
1 changed files with 2 additions and 2 deletions
|
@ -84,9 +84,9 @@ class Monitor(xbmc.Monitor):
|
||||||
Otherwise the next played item will be added the previous queue.
|
Otherwise the next played item will be added the previous queue.
|
||||||
'''
|
'''
|
||||||
if method == "Player.OnStop":
|
if method == "Player.OnStop":
|
||||||
xbmc.sleep(2000) # let's wait for the player so we don't clear the canceled playlist by mistake.
|
xbmc.sleep(3000) # let's wait for the player so we don't clear the canceled playlist by mistake.
|
||||||
|
|
||||||
if xbmc.getCondVisibility("!Player.HasMedia"):
|
if xbmc.getCondVisibility("!Player.HasMedia + !Window.IsVisible(busydialog)"):
|
||||||
|
|
||||||
xbmc.executebuiltin("Playlist.Clear")
|
xbmc.executebuiltin("Playlist.Clear")
|
||||||
LOG.info("[ playlist ] cleared")
|
LOG.info("[ playlist ] cleared")
|
||||||
|
|
Loading…
Reference in a new issue