mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Added support for youtube trailers
This commit is contained in:
parent
874aab05d5
commit
591214590e
1 changed files with 7 additions and 0 deletions
|
@ -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', " ")
|
||||
|
|
Loading…
Reference in a new issue