Add Kodi info screen for episodes in context menu
This commit is contained in:
parent
643899ce49
commit
3cb4b53887
7 changed files with 8 additions and 0 deletions
0
8356
Normal file
0
8356
Normal file
0
FETCH_HEAD
Normal file
0
FETCH_HEAD
Normal file
0
develop
Normal file
0
develop
Normal file
|
@ -83,6 +83,11 @@ msgctxt "#30017"
|
|||
msgid "Unauthorized for PMS"
|
||||
msgstr ""
|
||||
|
||||
# Kodi context menu entry for movie and episode information screen
|
||||
msgctxt "#30018"
|
||||
msgid "Information"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#30022"
|
||||
msgid "Advanced"
|
||||
msgstr ""
|
||||
|
|
|
@ -2534,6 +2534,8 @@ class API():
|
|||
# Expensive operation
|
||||
metadata['title'] = title
|
||||
listItem.setInfo('video', infoLabels=metadata)
|
||||
# Add context menu entry for information screen
|
||||
listItem.addContextMenuItems([(lang(30018), 'XBMC.Action(Info)',)])
|
||||
return listItem
|
||||
|
||||
def add_video_streams(self, listItem):
|
||||
|
|
|
@ -255,6 +255,7 @@ def createListItem(item, appendShowTitle=False, appendSxxExx=False):
|
|||
li.setArt({'icon': 'DefaultTVShows.png'})
|
||||
li.setProperty('dbid', str(item['episodeid']))
|
||||
li.setProperty('fanart_image', item['art'].get('tvshow.fanart',''))
|
||||
li.addContextMenuItems([(lang(30018), 'XBMC.Action(Info)',)])
|
||||
for key, value in item['streamdetails'].iteritems():
|
||||
for stream in value:
|
||||
li.addStreamInfo(key, stream)
|
||||
|
|
0
script-plex-connect-server.xml}
Normal file
0
script-plex-connect-server.xml}
Normal file
Loading…
Reference in a new issue