mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
only add trailers that are actually local
This commit is contained in:
parent
3b78b8e765
commit
4606ad5e79
1 changed files with 3 additions and 2 deletions
|
@ -220,8 +220,9 @@ class CreateFiles():
|
||||||
jsonData = downloadUtils.downloadUrl(itemTrailerUrl, suppress=True, popup=0 )
|
jsonData = downloadUtils.downloadUrl(itemTrailerUrl, suppress=True, popup=0 )
|
||||||
if(jsonData != ""):
|
if(jsonData != ""):
|
||||||
trailerItem = json.loads(jsonData)
|
trailerItem = json.loads(jsonData)
|
||||||
trailerUrl = "plugin://plugin.video.mb3sync/?id=" + trailerItem[0].get("Id") + '&mode=play'
|
if trailerItem[0].get("LocationType") == "FileSystem":
|
||||||
SubElement(root, "trailer").text = trailerUrl
|
trailerUrl = "plugin://plugin.video.mb3sync/?id=" + trailerItem[0].get("Id") + '&mode=play'
|
||||||
|
SubElement(root, "trailer").text = trailerUrl
|
||||||
|
|
||||||
#add streamdetails
|
#add streamdetails
|
||||||
fileinfo = SubElement(root, "fileinfo")
|
fileinfo = SubElement(root, "fileinfo")
|
||||||
|
|
Loading…
Reference in a new issue