No results from IMDb

Bug #1784433 reported by Patricia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Griffith
New
Undecided
Unassigned

Bug Description

Hi!
It seems like IMDb changed something because Griffith can't find results. That's what I get when fetching a title: "No results".
Could you please fix this? Thanks!

Revision history for this message
Hanns Weschta (katzgetier) wrote :

I can confirm that. IMDB sends an error 503. Thats because the URL of the film search page has changed. I will try to provide a patch tomorrow, but meanwhile you can fix this on your own:
Go to the folder, where the program is installed. Then enter into the subfolders lib -> plugins -> movie and open the file PlugInMovieIMDB.py with an editor (notepad, not MS Word, if you happen to use Windows). Search for "def __init__(self)". It is at line 247, if you have the current version. Following are some lines, starting with "#". The next two lines below are key to the problem and its solution.

Replace

        self.original_url_search = 'http://www.imdb.com/find?s=tt&q='
        self.translated_url_search = 'http://www.imdb.com/find?s=tt&q='

with

        self.original_url_search = 'http://www.imdb.com/find?ref_=nv_sr_fn&q='
        self.translated_url_search = 'http://www.imdb.com/find?ref_=nv_sr_fn&q='
but carefully check not to change the indention. It should be the same as before (8 blank spaces)

Thats it. Save and restart Griffith. The new version of the file should automatically trigger the rebuild of the code and you should recieve results from IMDB.

Revision history for this message
Hanns Weschta (katzgetier) wrote :

It seems, Launchpad has inserted linebreaks to my long lines. Please note that only the parameters of the ULRs have changed. They both read:
'http://www.imdb.com/find?ref_=nv_sr_fn&q='

Revision history for this message
Patricia (crazypat63) wrote :

Yeahhh!!! It works like a charm!! Thank you so much for your fast reply!

Revision history for this message
Michael (mikej06) wrote :

Are you really sure that the URL doesn't work? Perhaps the 503 error was only temporarly.
I tried the following searches and both of them work:
* the original one: https://www.imdb.com/find?s=tt&q=Rocky
* your new version: https://www.imdb.com/find?ref_=nv_sr_fn&q=Rocky
And I tried the griffith plugin (original URL) and it worked too.

Revision history for this message
Hanns Weschta (katzgetier) wrote :

You are right. Now it works again with the original URL. Maybe IMDB tried something new and forgot to support the old version? I attached the 503-result page, which I extracted with Griffith. Funny, isn't it?

Then I tried the film search function at IMDB and it came up with the new version of parameters.

Let's stick to the old URL and hope for the best.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.