add episode and season number to video player header

This commit is contained in:
Lee Gladsden 2023-11-03 00:51:58 -04:00
parent e70e55f755
commit 855ea06c57

View File

@ -48,9 +48,11 @@ sub AddVideoContent(video, mediaSourceId, audio_stream_idx = 1, subtitle_idx = -
if m.videotype = "Episode" or m.videotype = "Series"
video.content.contenttype = "episode"
video.content.title = "S" + meta.json.ParentIndexNumber.toStr() + "E" + meta.json.IndexNumber.toStr() + " - " + meta.title
else
video.content.title = meta.title
end if
video.content.title = meta.title
video.showID = meta.showID
if playbackPosition = -1 and isValid(meta.json)