2021-05-02, 14:52
One more detail: Using the above script will create a bookmark if there are no bookmarks. To prevent that, add the following lines after xbmc.executebuiltin("ActivateWindow(VideoBookmarks)")
xbmc.executebuiltin("Action(Right)")
time.sleep(0.01)
if xbmc.getCondVisibility("String.StartsWith(ListItem.Label,Chapter)") | xbmc.getCondVisibility("String.StartsWith(ListItem.Label,Bookmark)"):
xbmc.executebuiltin("Action(noop)")
else:
xbmc.executebuiltin("Action(close)")
xbmc.executebuiltin("Action(Right)")
time.sleep(0.01)
if xbmc.getCondVisibility("String.StartsWith(ListItem.Label,Chapter)") | xbmc.getCondVisibility("String.StartsWith(ListItem.Label,Bookmark)"):
xbmc.executebuiltin("Action(noop)")
else:
xbmc.executebuiltin("Action(close)")