[mythtv] [PATCH] Mythvideo IMDB grabber

John Danner johndanner at untzuntz.com
Tue Sep 2 11:09:18 EDT 2003

Not sure if things have changed (as far as MythTV's compatability to QT 3.0), 
but the QHttpRequestHeader is not in QT 3.0, which is the reason the User-
Agent is coupled with the GET request.

Having not seen the error, IMDB was always weary of unknown User-Agents. This 
is the reason the User-Agent was in the GET request initially, but I'm 
suprised how this suddenly broke. Did you try a different User-Agent within 
the existing code?


---------- Original Message -----------
From: Mikael Magnusson <mikaelmagnusson at tjohoo.se> 
To: mythtv-dev at mythtv.org 
Sent: Tue, 2 Sep 2003 13:19:12 +0200 
Subject: [mythtv] [PATCH] Mythvideo IMDB grabber 

> On Mon, Sep 01, 2003 at 02:39:10PM +0000, Andrew Peabody wrote: 
> > IMDB changed the url's slightly.  I don't have them in front of me, but 
> > I recall: 
> > 
> > Instead of /Title?{movienum} it is now /title/tt{movienum} 
> > 
> > For posters it is now /title/tt{movienum}/posters 
> > 
> > However, that change is easy and will only take a few seconds, the real 
> > issue issue is their new page checks for a http User-Agent.  IMDB does 
> > recognize the one from MythVideo, it shows up as part of the URL instead 
> > being sent as part of the header (just as guess, but that is what it 
> > like from the debug message at the bottom of the error page).  Either way 
> > IMDB does not see the User-Agent string and thinks MythVideo is an 
> > anonymous http client which they do not allow. 
> > 
> > I'm not too familiar with Qt, hopefully someone knows more about Qt knows 
> > more about how to send a User-Agent/Browser String successfully.  I think 
> > Qhttp might be able to let the header be custom set, but I can't get it 
> > work. 
> This patch contains the necessary changes to the IMDB grabber code. 
> The grabber now uses a new class called HttpComms, which replaces 
> INETComms in MythVideo. HttpComms uses QHttp instead of QUrlOperator, 
> as proposed. 
> The mythtv patch should be applied in mythtv/libs. 
> Regards, 
> Mikael Magnusson 
------- End of Original Message -------

More information about the mythtv-dev mailing list