Fix skipping back in Kodi playlist

This commit is contained in:
croneter 2018-02-03 17:03:36 +01:00
parent 8d1bd52328
commit 199939c8b7

View file

@ -183,6 +183,18 @@ def skipnext():
def skipprevious():
"""
Skips to the previous item to play for all Kodi players
Using a HACK to make sure we're not just starting same item over again
"""
for playerid in get_player_ids():
try:
skipto(get_position(playerid) - 1)
except (KeyError, TypeError):
pass
def wont_work_skipprevious():
"""
Skips to the previous item to play for all Kodi players
"""