[mythtv-users] BBC iPlayer website request fetches mobile site

Paul Harrison mythtv at sky.com
Tue Aug 9 23:05:18 UTC 2011

On 09/08/11 22:01, Chris Jewell wrote:
> Hi All,
> I just updated my installation of Mythbuntu the other day, and it seems I'm now faced with a weird problem: when I point MythBrowser at the BBC iPlayer site (www.bbc.co.uk/iplayer), I get the mobile site returned with a message "Your phone is not supported".  Huh?  Shouldn't MythBrowser look like a regular desktop browser?
> I'm using version 0.24.1-61-gcccad82, for reference.
> Cheers,
> Chris

The BBC must be looking at the user-agent string being passed by Qt
Webkit and assuming wrongly that the browser is running on a mobile.
It's easy to fake a user-agent string just by overriding
QWebPage::userAgentForUrl(const QUrl &url).

I've just made this change locally and it works fine it's just a few
devs tend to get their knickers in a twist when something like this is
discussed so not sure if it can be committed. Obviously the Qt devs
think it's OK to fake the user-agent string otherwise they wouldn't make
it so easy to do so.

Paul H.

More information about the mythtv-users mailing list