From 20e6236fefd1b3c86a529348743c5eba46b42817 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 6 Nov 2016 12:21:11 +0100 Subject: [PATCH] Explicitly say that we're using plex trailers --- resources/lib/playbackutils.py | 4 ++-- resources/lib/playlist.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/playbackutils.py b/resources/lib/playbackutils.py index 620ef303..2a1832eb 100644 --- a/resources/lib/playbackutils.py +++ b/resources/lib/playbackutils.py @@ -57,7 +57,7 @@ class PlaybackUtils(): if not playurl: 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 # e.g. plex.tv watch later API.CreateListItemFromPlexItem(listitem) @@ -235,7 +235,7 @@ class PlaybackUtils(): path = "plugin://plugin.video.plexkodiconnect.movies/" params = { 'mode': "play", - 'dbid': 999999999 + 'dbid': 'plextrailer' } for counter, intro in enumerate(xml): # Don't process the last item - it's the original movie diff --git a/resources/lib/playlist.py b/resources/lib/playlist.py index 98fcd34e..f6886a9c 100644 --- a/resources/lib/playlist.py +++ b/resources/lib/playlist.py @@ -273,7 +273,7 @@ class Playlist(): API = PlexAPI.API(item) params = { 'mode': "play", - 'dbid': 999999999, + 'dbid': 'plextrailer', 'id': API.getRatingKey(), 'filename': API.getKey() }