Re-add api_key in the stream request for now

This commit is contained in:
Nick Bisby 2019-01-30 23:05:29 -06:00
parent f9722fd279
commit 7c1bfad42f
No known key found for this signature in database
GPG Key ID: F6E0C4E6D0B5EB36

View File

@ -4,7 +4,6 @@ function VideoPlayer(id)
video = m.scene.findNode("VideoPlayer")
video.AddHeader("X-Emby-Authorization", build_auth())
if content.protocol = "https" then
video.setCertificatesFile("common:/certs/ca-bundle.crt")
end if
@ -28,7 +27,8 @@ function VideoContent(id) as object
protocol = get_var("protocol")
hostname = get_var("hostname")
content.url = Substitute("{0}://{1}/emby/Videos/{2}/stream.mp4", protocol, hostname, id)
params = "?Static=true&mediaSourceId=" + get_var("video_id") + "&Tag=e781255330167721024e07504244c553&api_key=" + get_var("user_token")
content.url = Substitute("{0}://{1}/emby/Videos/{2}/stream.mp4", protocol, hostname, id) + params
content.protocol = "https"
return content