Use app version from manifest file for auth

This commit is contained in:
Charles Ewert 2019-10-05 22:48:25 -04:00
parent b7abd5d6f2
commit 373fb1498c

View File

@ -146,8 +146,8 @@ function server_is_https() as Boolean
end function
function authorize_request(request)
' TODO - get proper version and device ID from manifest
devinfo = CreateObject("roDeviceInfo")
appinfo = CreateObject("roAppInfo")
auth = "MediaBrowser"
@ -167,7 +167,7 @@ function authorize_request(request)
end if
auth = auth + ", DeviceId=" + Chr(34) + device_id + Chr(34)
version = "10.3.0"
version = appinfo.GetVersion()
auth = auth + ", Version=" + Chr(34) + version + Chr(34)
user = get_setting("active_user")