From fc7916c69b4d7304e6f7144b8b5a5ec94ccbe710 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 17 Jun 2015 03:19:08 -0500 Subject: [PATCH] Quick correction for youtube trailer --- resources/lib/WriteKodiVideoDB.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/WriteKodiVideoDB.py b/resources/lib/WriteKodiVideoDB.py index e135ec5f..b9816812 100644 --- a/resources/lib/WriteKodiVideoDB.py +++ b/resources/lib/WriteKodiVideoDB.py @@ -123,7 +123,7 @@ class WriteKodiVideoDB(): if(jsonData != ""): trailerItem = jsonData trailerUrl = "plugin://plugin.video.emby/trailer/?id=%s&mode=play" % trailerItem[0][u'Id'] - elif MBitem.get("RemoteTrailers") != None: + elif MBitem.get("RemoteTrailers"): try: trailerUrl = MBitem.get("RemoteTrailers")[0].get("Url") trailerId = trailerUrl.split('=')[1]