mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Merge pull request #159 from sualfred/develop
Don't clear playlist if busy spinner is active
This commit is contained in:
commit
17951fa402
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