Revert "Merge pull request #504 from neilsb/set-mediasourceid-correctly"

This reverts commit 0e2d621263, reversing
changes made to d5c316586b.
This commit is contained in:
Neil Burrows 2022-01-09 15:55:31 +00:00
parent de2e628182
commit f6d9695761

View File

@ -64,11 +64,12 @@ sub AddVideoContent(video, audio_stream_idx = 1, subtitle_idx = -1, playbackPosi
video.content.PlayStart = int(playbackPosition / 10000000)
' Call PlayInfo from server
mediaSourceId = video.mediaSourceId
mediaSourceId = video.id
if meta.live then mediaSourceId = "" ' Don't send mediaSourceId for Live media
playbackInfo = ItemPostPlaybackInfo(video.id, mediaSourceId, audio_stream_idx, subtitle_idx, playbackPosition)
video.videoId = video.id
video.mediaSourceId = video.id
video.audioIndex = audio_stream_idx
if playbackInfo = invalid