Use app version from manifest file for auth
This commit is contained in:
parent
b7abd5d6f2
commit
373fb1498c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user