From 199939c8b77b19471fec35ff0030771db5287dc7 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 3 Feb 2018 17:03:36 +0100 Subject: [PATCH] Fix skipping back in Kodi playlist --- resources/lib/json_rpc.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/lib/json_rpc.py b/resources/lib/json_rpc.py index a2ef0b03..9e1df360 100644 --- a/resources/lib/json_rpc.py +++ b/resources/lib/json_rpc.py @@ -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 """