Fix some addon paths
This commit is contained in:
parent
ed4ae181ec
commit
0111b66cd1
2 changed files with 8 additions and 8 deletions
|
@ -566,8 +566,8 @@ def getOnDeck(viewid, mediatype, tagname, limit):
|
||||||
else:
|
else:
|
||||||
params = {
|
params = {
|
||||||
'mode': "play",
|
'mode': "play",
|
||||||
'id': api.getRatingKey(),
|
'plex_id': api.getRatingKey(),
|
||||||
'dbid': listitem.getProperty('dbid')
|
'plex_type': api.getType()
|
||||||
}
|
}
|
||||||
url = "plugin://plugin.video.plexkodiconnect/tvshows/?%s" \
|
url = "plugin://plugin.video.plexkodiconnect/tvshows/?%s" \
|
||||||
% urlencode(params)
|
% urlencode(params)
|
||||||
|
|
|
@ -255,8 +255,9 @@ class Movies(Items):
|
||||||
for extra in extras:
|
for extra in extras:
|
||||||
# Only get 1st trailer element
|
# Only get 1st trailer element
|
||||||
if extra['extraType'] == 1:
|
if extra['extraType'] == 1:
|
||||||
trailer = ("plugin://plugin.video.plexkodiconnect/trailer/?"
|
trailer = ("plugin://plugin.video.plexkodiconnect?"
|
||||||
"id=%s&mode=play") % extra['key']
|
"plex_id=%s&plex_type=%s&mode=play"
|
||||||
|
% (extra['key'], v.PLEX_TYPE_CLIP))
|
||||||
break
|
break
|
||||||
|
|
||||||
# GET THE FILE AND PATH #####
|
# GET THE FILE AND PATH #####
|
||||||
|
@ -913,10 +914,9 @@ class TVShows(Items):
|
||||||
filename = 'file_not_found.mkv'
|
filename = 'file_not_found.mkv'
|
||||||
path = "plugin://plugin.video.plexkodiconnect/tvshows/%s/" % seriesId
|
path = "plugin://plugin.video.plexkodiconnect/tvshows/%s/" % seriesId
|
||||||
params = {
|
params = {
|
||||||
'filename': tryEncode(filename),
|
'plex_id': itemid,
|
||||||
'id': itemid,
|
'plex_type': v.PLEX_TYPE_EPISODE,
|
||||||
'dbid': episodeid,
|
'mode': 'play'
|
||||||
'mode': "play"
|
|
||||||
}
|
}
|
||||||
filename = "%s?%s" % (path, tryDecode(urlencode(params)))
|
filename = "%s?%s" % (path, tryDecode(urlencode(params)))
|
||||||
playurl = filename
|
playurl = filename
|
||||||
|
|
Loading…
Reference in a new issue