Update API docs

This commit is contained in:
jellyfin-bot 2024-03-15 12:00:59 +00:00
parent 79f5c15024
commit f08b94302c
5 changed files with 141 additions and 6 deletions

View File

@ -99,14 +99,28 @@ sub LoadItems_AddVideoContent(video as object, mediaSourceId as dynamic, audio_s
end if end if
end if end if
if videotype = "episode" or videotype = "series"
video.content.contenttype = "episode"
end if
video.chapters = meta.json.Chapters video.chapters = meta.json.Chapters
video.content.title = meta.title video.content.title = meta.title
video.showID = meta.showID video.showID = meta.showID
logoLookupID = video.id
if videotype = "episode" or videotype = "series"
video.content.contenttype = "episode"
video.seasonNumber = meta.json.ParentIndexNumber
video.episodeNumber = meta.json.IndexNumber
video.episodeNumberEnd = meta.json.IndexNumberEnd
if isValid(meta.showID)
logoLookupID = meta.showID
end if
end if
logoImageExists = api.items.HeadImageURLByName(logoLookupID, "logo")
if logoImageExists
video.logoImage = api.items.GetImageURL(logoLookupID, "logo", 0, { "maxHeight": 65, "maxWidth": 300, "quality": "90" })
end if
user = AboutMe() user = AboutMe()
if user.Configuration.EnableNextEpisodeAutoPlay if user.Configuration.EnableNextEpisodeAutoPlay
if LCase(m.top.itemType) = "episode" if LCase(m.top.itemType) = "episode"

File diff suppressed because one or more lines are too long

View File

@ -402,6 +402,31 @@ sub onVideoContentLoaded()
m.osd.itemTitleText = m.top.content.title m.osd.itemTitleText = m.top.content.title
' If video is an episode, attempt to add season and episode numbers to OSD
if m.top.content.contenttype = 4
if isValid(videoContent[0].seasonNumber)
m.osd.seasonNumber = videoContent[0].seasonNumber
end if
if isValid(videoContent[0].episodeNumber)
m.osd.episodeNumber = videoContent[0].episodeNumber
end if
if isValid(videoContent[0].episodeNumberEnd)
m.osd.episodeNumberEnd = videoContent[0].episodeNumberEnd
end if
end if
' Attempt to add logo to OSD
if isValidAndNotEmpty(videoContent[0].logoImage)
m.osd.logoImage = videoContent[0].logoImage
' Don't show both the logo and the video title if this isn't an episode
if m.top.content.contenttype <> 4
m.osd.itemTitleText = ""
end if
end if
populateChapterMenu() populateChapterMenu()
if m.LoadMetaDataTask.isIntro if m.LoadMetaDataTask.isIntro

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long