only add real local trailers

This commit is contained in:
im85288 2015-03-22 14:51:03 +00:00
parent 4606ad5e79
commit 6566e21fe1

View file

@ -138,9 +138,11 @@ class WriteKodiDB():
jsonData = downloadUtils.downloadUrl(itemTrailerUrl, suppress=True, popup=0 ) jsonData = downloadUtils.downloadUrl(itemTrailerUrl, suppress=True, popup=0 )
if(jsonData != ""): if(jsonData != ""):
trailerItem = json.loads(jsonData) trailerItem = json.loads(jsonData)
if trailerItem[0].get("LocationType") == "FileSystem":
trailerUrl = "plugin://plugin.video.mb3sync/?id=" + trailerItem[0].get("Id") + '&mode=play' trailerUrl = "plugin://plugin.video.mb3sync/?id=" + trailerItem[0].get("Id") + '&mode=play'
self.getPropertyParam_Batched(KodiItem, "trailer", trailerUrl, params) self.getPropertyParam_Batched(KodiItem, "trailer", trailerUrl, params)
changes = False changes = False
# if there were movies changes then send the update via JSONRPC # if there were movies changes then send the update via JSONRPC
if(len(params) > 0): if(len(params) > 0):