Fix some addon paths

This commit is contained in:
croneter 2018-02-05 20:44:41 +01:00
parent ed4ae181ec
commit 0111b66cd1
2 changed files with 8 additions and 8 deletions

View file

@ -566,8 +566,8 @@ def getOnDeck(viewid, mediatype, tagname, limit):
else:
params = {
'mode': "play",
'id': api.getRatingKey(),
'dbid': listitem.getProperty('dbid')
'plex_id': api.getRatingKey(),
'plex_type': api.getType()
}
url = "plugin://plugin.video.plexkodiconnect/tvshows/?%s" \
% urlencode(params)

View file

@ -255,8 +255,9 @@ class Movies(Items):
for extra in extras:
# Only get 1st trailer element
if extra['extraType'] == 1:
trailer = ("plugin://plugin.video.plexkodiconnect/trailer/?"
"id=%s&mode=play") % extra['key']
trailer = ("plugin://plugin.video.plexkodiconnect?"
"plex_id=%s&plex_type=%s&mode=play"
% (extra['key'], v.PLEX_TYPE_CLIP))
break
# GET THE FILE AND PATH #####
@ -913,10 +914,9 @@ class TVShows(Items):
filename = 'file_not_found.mkv'
path = "plugin://plugin.video.plexkodiconnect/tvshows/%s/" % seriesId
params = {
'filename': tryEncode(filename),
'id': itemid,
'dbid': episodeid,
'mode': "play"
'plex_id': itemid,
'plex_type': v.PLEX_TYPE_EPISODE,
'mode': 'play'
}
filename = "%s?%s" % (path, tryDecode(urlencode(params)))
playurl = filename