Quick correction for youtube trailer
This commit is contained in:
parent
56c2c9aef2
commit
fc7916c69b
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue