From 98ebb9792bfbc8bf53b36247fa909364fbb859fa Mon Sep 17 00:00:00 2001 From: Shaun Date: Sat, 9 Feb 2019 19:26:27 +1100 Subject: [PATCH] small fix for trailers --- addon.xml | 2 +- resources/lib/functions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index 8176394..693b47b 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/resources/lib/functions.py b/resources/lib/functions.py index 3a3bd21..afc271e 100644 --- a/resources/lib/functions.py +++ b/resources/lib/functions.py @@ -839,7 +839,7 @@ def playTrailer(id): info = {} info["type"] = "remote" url = trailer.get("Url", "none") - if url.lower().find("youtube"): + if url.lower().find("youtube") != -1: info["url"] = url name = trailer.get("Name") while not name or name in trailer_names: