diff --git a/resources/lib/WriteKodiVideoDB.py b/resources/lib/WriteKodiVideoDB.py index a980ce22..e135ec5f 100644 --- a/resources/lib/WriteKodiVideoDB.py +++ b/resources/lib/WriteKodiVideoDB.py @@ -123,6 +123,13 @@ 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: + try: + trailerUrl = MBitem.get("RemoteTrailers")[0].get("Url") + trailerId = trailerUrl.split('=')[1] + trailerUrl = "plugin://plugin.video.youtube/play/?video_id=%s" % trailerId + except: + trailerUrl = MBitem.get("RemoteTrailers")[0].get("Url") if MBitem.get("DateCreated") != None: dateadded = MBitem["DateCreated"].split('.')[0].replace('T', " ")