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

Andy Summerskill andysummerskill at hotmail.com
Tue Aug 16 18:53:52 UTC 2011


Additional info...

I have created a webpage containing the php code -

<?php 
 echo $_SERVER['HTTP_USER_AGENT'];
 ?> 

which returns 


Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0

using the standard Ubuntu version of firefox. However, the return when the website is accessed from Mythbrowser is


Mozilla/5.0 (X11; U; Linux i686; en-GB) AppleWebKit/533.3 (KHTML, like Gecko) Qt/4.7.2 Safari/533.3

which the BBC website is presumably interpreting as a mobile browser.

> From: andysummerskill at hotmail.com
> To: mythtv-users at mythtv.org
> Date: Tue, 16 Aug 2011 15:57:58 +0100
> Subject: Re: [mythtv-users] BBC iPlayer website request fetches mobile site
> 
> I'm having this problem too.
> 
> Can anyone give a step-by-step of how to override
> QWebPage::userAgentForUrl(const QUrl&url).
> 
> -which file needs editing, location of that file. etc.
> 
> I assume any changes will need to be made on each Frontend
> 
> BTW I'm running Mythfrontend version: fixes/0.24(v0.24.1-69-g515171d)
> under Mythbuntu Natty
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20110816/4f61d1c1/attachment.html 


More information about the mythtv-users mailing list