From 4606ad5e79f7b9c48623b2805f1b725880224267 Mon Sep 17 00:00:00 2001 From: im85288 Date: Sun, 22 Mar 2015 14:21:30 +0000 Subject: [PATCH] only add trailers that are actually local --- resources/lib/CreateFiles.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/CreateFiles.py b/resources/lib/CreateFiles.py index f4ba61da..7dd6c52b 100644 --- a/resources/lib/CreateFiles.py +++ b/resources/lib/CreateFiles.py @@ -220,8 +220,9 @@ class CreateFiles(): jsonData = downloadUtils.downloadUrl(itemTrailerUrl, suppress=True, popup=0 ) if(jsonData != ""): trailerItem = json.loads(jsonData) - trailerUrl = "plugin://plugin.video.mb3sync/?id=" + trailerItem[0].get("Id") + '&mode=play' - SubElement(root, "trailer").text = trailerUrl + if trailerItem[0].get("LocationType") == "FileSystem": + trailerUrl = "plugin://plugin.video.mb3sync/?id=" + trailerItem[0].get("Id") + '&mode=play' + SubElement(root, "trailer").text = trailerUrl #add streamdetails fileinfo = SubElement(root, "fileinfo")