Page 1 of 1

Mediabrowser Profile Selection

PostPosted: Mon Dec 14, 2015 4:41 am
by jhb50
Zip, how does one select a different application-profile?
Currently Mediabrowser on the PC issues GET...profile=flv_player, whereas on both the IPAD and Android it issues GET...profile=ios.

I would like to have a different profile used for Android, but using detection of <User-Agent>.*Android.*</User-Agent> is being ignored.
I would expect the default profile=ios to be used by the GET only if there is no application-profile with a matching User-Agent.

If this is not possible, where in the code can I find the logic that decides to use what profile= to set so I can alter it to profile=Android for Android devices?

Re: Mediabrowser Profile Selection

PostPosted: Mon Dec 14, 2015 7:16 pm
by zip
It's inside the javaScript code, based on User-Agent. You won't be able to change that easily, as the code is minified.

Re: Mediabrowser Profile Selection

PostPosted: Tue Dec 15, 2015 2:03 pm
by jhb50
zip wrote:It's inside the javaScript code, based on User-Agent. You won't be able to change that easily, as the code is minified.

Easiest mod I ever made! Unzip jar,extract js, edit, delete ||ifAndroid(), add ifAndroid()?"android":, save js, zip into jar. Voila!!