Quick correction for youtube trailer

This commit is contained in:
angelblue05 2015-06-17 03:19:08 -05:00
parent 56c2c9aef2
commit fc7916c69b

View file

@ -123,7 +123,7 @@ class WriteKodiVideoDB():
if(jsonData != ""): if(jsonData != ""):
trailerItem = jsonData trailerItem = jsonData
trailerUrl = "plugin://plugin.video.emby/trailer/?id=%s&mode=play" % trailerItem[0][u'Id'] trailerUrl = "plugin://plugin.video.emby/trailer/?id=%s&mode=play" % trailerItem[0][u'Id']
elif MBitem.get("RemoteTrailers") != None: elif MBitem.get("RemoteTrailers"):
try: try:
trailerUrl = MBitem.get("RemoteTrailers")[0].get("Url") trailerUrl = MBitem.get("RemoteTrailers")[0].get("Url")
trailerId = trailerUrl.split('=')[1] trailerId = trailerUrl.split('=')[1]