Skip to content

Commit

Permalink
script.module.slyguy -> v0.80.3
Browse files Browse the repository at this point in the history
  • Loading branch information
matthuisman authored and johnny5-is-alive committed May 22, 2024
1 parent fb00ee2 commit 7b90bd4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions script.module.slyguy/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.module.slyguy" name="SlyGuy Common" provider-name="SlyGuy" version="0.80.2">
<addon id="script.module.slyguy" name="SlyGuy Common" provider-name="SlyGuy" version="0.80.3">
<requires>
<import addon="slyguy.dependencies" version="0.0.18"/>
<import addon="repository.slyguy" version="0.0.4"/>
Expand All @@ -16,7 +16,7 @@
<license></license>
<language></language>
<website></website>
<news>Update PL language. Thanks @hevet</news>
<news>Add Play next and Queue item context menu items</news>
<assets>
<icon>icon.png</icon>
<fanart>fanart.jpg</fanart>
Expand Down
9 changes: 8 additions & 1 deletion script.module.slyguy/resources/modules/slyguy/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,14 @@ def get_li(self, playing=False):
self.path = add_url_args(self.path, _play=1)

if self.context:
li.addContextMenuItems(self.context)
items = [x for x in self.context]
# live/pvr already has these added in kodi 20+
if self.playable and (KODI_VERSION < 20 or ROUTE_LIVE_TAG not in self.path):
# PlayNext added in Kodi 18
if KODI_VERSION > 17:
items.append((_.PLAY_NEXT, 'Action(PlayNext)'))
items.append((_.QUEUE_ITEM, 'Action(Queue)'))
li.addContextMenuItems(items)

if self.resume_from is not None:
# Setting this on Kodi 18 or below removes all list item data (fixed in 19)
Expand Down
2 changes: 2 additions & 0 deletions script.module.slyguy/resources/modules/slyguy/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ class BaseLanguage(object):
PLAYBACK_FAILED = 16026
AUTO = 16316
TRAILER = 20410
PLAY_NEXT = 10008
QUEUE_ITEM = 13347

def __getattribute__(self, name):
attr = object.__getattribute__(self, name)
Expand Down

0 comments on commit 7b90bd4

Please sign in to comment.