Explicitly say that we're using plex trailers

This commit is contained in:
tomkat83 2016-11-06 12:21:11 +01:00
parent bcc46e4ea1
commit 20e6236fef
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ class PlaybackUtils():
if not playurl: if not playurl:
return xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, listitem) return xbmcplugin.setResolvedUrl(int(sys.argv[1]), False, listitem)
if dbid in (None, '999999999', 'plexnode'): if dbid in (None, 'plextrailer', 'plexnode'):
# Item is not in Kodi database, is a trailer or plex redirect # Item is not in Kodi database, is a trailer or plex redirect
# e.g. plex.tv watch later # e.g. plex.tv watch later
API.CreateListItemFromPlexItem(listitem) API.CreateListItemFromPlexItem(listitem)
@ -235,7 +235,7 @@ class PlaybackUtils():
path = "plugin://plugin.video.plexkodiconnect.movies/" path = "plugin://plugin.video.plexkodiconnect.movies/"
params = { params = {
'mode': "play", 'mode': "play",
'dbid': 999999999 'dbid': 'plextrailer'
} }
for counter, intro in enumerate(xml): for counter, intro in enumerate(xml):
# Don't process the last item - it's the original movie # Don't process the last item - it's the original movie

View file

@ -273,7 +273,7 @@ class Playlist():
API = PlexAPI.API(item) API = PlexAPI.API(item)
params = { params = {
'mode': "play", 'mode': "play",
'dbid': 999999999, 'dbid': 'plextrailer',
'id': API.getRatingKey(), 'id': API.getRatingKey(),
'filename': API.getKey() 'filename': API.getKey()
} }