imdb script not working

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
donrobbins
Posts: 2
Joined: 2022-12-19 21:37:17

imdb script not working

Post by donrobbins »

downloaded the latest imdb script, but keep getting error no movie found. anyone else having this issue??
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: imdb script not working

Post by antp »

Which version of the script do you have?
Which title do you search?
For me the 4.0.18 seems to work
RoyBrown
Posts: 5
Joined: 2022-12-24 18:25:18

Re: imdb script not working

Post by RoyBrown »

Not working for me either.

I have version 4.018 of the script. And I have searched for multiple recent movies

However, if I select BatchMode=2 and manually enter the URL, it works.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: imdb script not working

Post by antp »

It is weird... Maybe there is another type of page returned by the site (I already get two different ones, randomly), so the script probably has to be updated for that third type but until I also have the problem it is difficult to adapt :/
One thing we can try: do a title search in your web browser, then when the results are displayed save that page to a simple HTML file ("web page only", without pictures) and upload that html file there: https://ks3c.antp.be/upload.php
If you have a different version of the results than I do maybe I'll be able to find a workaround.
I will probably not have time for that before end of this week or even next week, so you'll have to be a little patient ;)
J
Posts: 224
Joined: 2008-02-17 17:09:26

Re: imdb script not working

Post by J »

At least for me all title searching is still working fine, I only need to turn option "popular searches" on to get any results for some title (e.g. "dont worry" or "Kreidelinie"), but I don't get any error messages.

Perhaps this is some kind of country/IP/time/OS/ad blocker/connection error/... related thing or they just playing silly games with us :/

Do you get different search result pages or even different movie pages?
RoyBrown
Posts: 5
Joined: 2022-12-24 18:25:18

Re: imdb script not working

Post by RoyBrown »

I just uploaded the html file as I see it in the browser.

I searched for that movie and got no resuts. I get no error; just empty fields.

As I mentioned in my previous message, if I select BatchMode=2 and manually enter the IMDB URL, it works.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: imdb script not working

Post by antp »

You sent me the movie page, not the search results page, i.e. the contents of one of these:
https://www.imdb.com/find/?s=tt&q=el%20men%C3%BA if you have the option PopularSearches set to 1
https://www.imdb.com/find/?s=tt&exact=t ... 0men%C3%BA otherwise
(by the way, you can also try to change that option to see if it helps, I forgot about it even if J mentioned it here above :D)

When you mention the use of "BatchMode" and the direct URL, even with BatchMode set to 0 you can import from an URL by pasting it instead of the movie title when the script asks for it.
davezn
Posts: 32
Joined: 2013-12-12 14:55:59
Location: RSA

Re: imdb script not working

Post by davezn »

Im having the same problem with firefox, script IMDB does not work.
Any suggestions PLEASE
Thanks
David
RoyBrown
Posts: 5
Joined: 2022-12-24 18:25:18

Re: imdb script not working

Post by RoyBrown »

I uploaded the search results html files.

I have PopularSearches set to 1. Setting it to 0 does not make a change.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: imdb script not working

Post by antp »

Thanks. I see that the page is in Spanish. In your case in the web browser IMDb translates the page, but I'm not sure that it does so when accessed from the script.
Can you try running this script to save the page via AMC rather than via the web browser?

Code: Select all

program NewScript;
var
  url: String;
  Page: TStringList;
begin
  url := 'https://www.imdb.com/find?s=tt&q=' + UrlEncode('el menú');
  Page := TStringList.Create;
  Page.Text := GetPage(url);
  Page.SaveToFile('e:\savedpage.html');
  Page.Free;
end.
Replace e:\savedpage.html by a valid path on your system
Run the script, then send me the file created there.
RoyBrown
Posts: 5
Joined: 2022-12-24 18:25:18

Re: imdb script not working

Post by RoyBrown »

I ran the script and uploaded the file
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: imdb script not working

Post by antp »

Strange, when I import with the script in version 4.018 from the file you sent me it works, so I don't see why the script could not work directly on your computer, as it seems to have the right data :??:
RoyBrown
Posts: 5
Joined: 2022-12-24 18:25:18

Re: imdb script not working

Post by RoyBrown »

Version 4.022 of the script has solved my problem. Thanks for the update!
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: imdb script not working

Post by antp »

Maybe you were using the "BatchMode" option to 1 then? As that new version was fixing that
Post Reply