IMDB script doesn't work

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.
LeMoi
Posts: 176
Joined: 2006-04-09 11:26:43

Re: IMDB script doesn't work

Post by LeMoi »

MrObama2022 wrote: 2025-06-24 08:27:56
LeMoi wrote: 2025-06-23 23:06:09 I have enough space, but indeed, I can't also launch other script since I updated to latest IMDb script, I don't know why...
I tried creating a new catalog, then launch another script, now I have another error "Cannot make a visible window modal", even with IMDb script
Uninstall AMC, delete this folder if still exists [ C:\ProgramData\Ant Movie Catalog ] and install again AMC. Double check no antivirus is blocking AMC (try disabling it and open AMC). This should not be needed, but you can also try to set a compatibility mode for "C:\Program Files (x86)\Ant Movie Catalog\MovieCatalog.exe"
I just reinstalled AMC over the same old version, then downloaded the updated script, and this time it worked.. I don't know happened last times but the problem looks to be solved, thanks for your help!
Munkey
Posts: 20
Joined: 2025-06-19 04:55:29

Re: IMDB script doesn't work

Post by Munkey »

I wrote alternative script for IMDB, it's using original IMDb's API -> viewtopic.php?t=43842
Lemaireus
Posts: 108
Joined: 2014-02-14 10:18:14

Re: IMDB script doesn't work

Post by Lemaireus »

MrObama2022 wrote: 2025-06-22 16:28:10 new version: 5.0 release candidate 6

CHANGELOG
* fixed errors with TitleTranslated = 2
* fixed TagLines
* NOTE: please insert again YOUR rapidApiKey in RapidAPIKey parameter
I have been using the script for over four days now and there are no problems whatsoever.

Thank you very much, MrObama, for getting our catalogues firing all engines again.
Roy001
Posts: 4
Joined: 2025-06-22 11:31:40

Re: IMDB script doesn't work

Post by Roy001 »

Thank you very much :grinking:
antp
Site Admin
Posts: 9720
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: IMDB script doesn't work

Post by antp »

Thank you to MrObama2022 for all the work (and to Munkey for the alternative script)
I'll soon update AMC's install package to include both of these, now that it seems stable :)
Munkey
Posts: 20
Joined: 2025-06-19 04:55:29

Re: IMDB script doesn't work

Post by Munkey »

antp wrote: 2025-06-27 06:51:35 Thank you to MrObama2022 for all the work (and to Munkey for the alternative script)
I'll soon update AMC's install package to include both of these, now that it seems stable :)
I would let few days more for them to be tested.
antp
Site Admin
Posts: 9720
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: IMDB script doesn't work

Post by antp »

I don't want to wait too much before updating the main IMDb script, I'll probably do that on Sunday.
Dorohedoro
Posts: 69
Joined: 2016-12-13 00:45:45

Re: IMDB script doesn't work

Post by Dorohedoro »

Is there any way to force the download of english posters?
MrObama2022
Posts: 103
Joined: 2022-02-02 00:03:55

Re: IMDB script doesn't work

Post by MrObama2022 »

Dorohedoro wrote: 2025-07-04 19:48:04 Is there any way to force the download of english posters?
The problem is: how can I recognize posters and other picture? I can get the "main" picture, but if I look at media viewer and I filter by language/country I don't know whick kind of image I'll get.

Here some examples (filtering by Spain):
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm711524864/
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm728302080/


Here filtering by english:
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm2396325376/
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm2544967681/
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm2673909248/
Dorohedoro
Posts: 69
Joined: 2016-12-13 00:45:45

Re: IMDB script doesn't work

Post by Dorohedoro »

MrObama2022 wrote: 2025-07-05 19:17:48
Dorohedoro wrote: 2025-07-04 19:48:04 Is there any way to force the download of english posters?
The problem is: how can I recognize posters and other picture? I can get the "main" picture, but if I look at media viewer and I filter by language/country I don't know whick kind of image I'll get.

Here some examples (filtering by Spain):
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm711524864/
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm728302080/


Here filtering by english:
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm2396325376/
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm2544967681/
https://www.imdb.com/it/title/tt0077355/mediaviewer/rm2673909248/
Your script right now takes the user IP location and download the poster for that country.

The Munkey IMDB script (API) takes the correct default poster, for example, for english movies it takes the correct english poster, for german movies the german poster, etc...
Dorohedoro
Posts: 69
Joined: 2016-12-13 00:45:45

Re: IMDB script doesn't work

Post by Dorohedoro »

Found another bug. For some reason in the Description field if there are "quotes" the script will add \\ around them, like this: \"quotes\" but that's not the main problem, the issue is that the description is cut as soon the first \ shows.

EXAMPLE: https://www.imdb.com/title/tt0107895/reference/

Official IMDB script:

Image

IMDB API script from Munkey:

Image


Thanks!!
MrObama2022
Posts: 103
Joined: 2022-02-02 00:03:55

Re: IMDB script doesn't work

Post by MrObama2022 »

New version here: 5.2 beta 2:

CHANGELOG
* removed legacy code for old html imdb pages
* fixed \" bug with DescriptionSelection = 0
* imageKind values 4 and 5 updated: now they does no more use merchandise / dvd/ amazon images but original country image (in full size or resized)

So @Dorohedoro double check if new script works for you. Consider I removed all old procedures for old imdb html pages (I think all site now use the new html schema but I'm not sure, so please "if you see something, say something" :lol: ). I fixed the bug with description (you are a great bug hunter!) and I used imdbapi.dev for setting original country poster. This is how you can set this: if you set ImageKind 4 you get the original poster at full size. If you set ImageKind 5 and you set LargePictureHeight, you get the original poster with wanted poster height. Option 4 and 5 use imdbapi.dev so double check if one of these cases occur:
- [random fails] no poster / error. Retry after few seconds and it works
- [poster missing only in imdbapi.dev] no poster / error. Retry after few seconds and it does not work. Retry with other ImageKind option (1, 2 or 3) and you get an image

Have nice testing days ;)
antp
Site Admin
Posts: 9720
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: IMDB script doesn't work

Post by antp »

Thanks
MrObama2022
Posts: 103
Joined: 2022-02-02 00:03:55

Re: IMDB script doesn't work

Post by MrObama2022 »

@Dorohedoro next release: I'll try to add iMDB actor images inside iMDB script
Dorohedoro
Posts: 69
Joined: 2016-12-13 00:45:45

Re: IMDB script doesn't work

Post by Dorohedoro »

MrObama2022 wrote: 2025-07-06 23:18:45 New version here: 5.2 beta 2:

CHANGELOG
* removed legacy code for old html imdb pages
* fixed \" bug with DescriptionSelection = 0
* imageKind values 4 and 5 updated: now they does no more use merchandise / dvd/ amazon images but original country image (in full size or resized)

So @Dorohedoro double check if new script works for you. Consider I removed all old procedures for old imdb html pages (I think all site now use the new html schema but I'm not sure, so please "if you see something, say something" :lol: ). I fixed the bug with description (you are a great bug hunter!) and I used imdbapi.dev for setting original country poster. This is how you can set this: if you set ImageKind 4 you get the original poster at full size. If you set ImageKind 5 and you set LargePictureHeight, you get the original poster with wanted poster height. Option 4 and 5 use imdbapi.dev so double check if one of these cases occur:
- [random fails] no poster / error. Retry after few seconds and it works
- [poster missing only in imdbapi.dev] no poster / error. Retry after few seconds and it does not work. Retry with other ImageKind option (1, 2 or 3) and you get an image

Have nice testing days ;)
Wow man, you are amazing!!, now everything is working as before, for me the script is perfect as it is.

Btw, if anyone is interested this is the code to retrieve the vote count into the subtitle field:

Code: Select all

  
  
  
  // UserRatings
  if GetOption('UserRatings') > 0 then
  begin
    if (GetOption('UserRatings') = 1) then
      fieldName := fieldsubtitles
    else
      fieldName := fieldComments;
    if (canSetField(fieldName)) then
    begin
      Value2 := getField(fieldName);
      jsonMultipleValuesToList(PageText, '"ratingsSummary":', '}', '"voteCount":', ',', fieldName, 1);
       Value := GetField(fieldName);
      if (GetOption('UserRatings') = 1) then
      begin
        if (getField(fieldName) <> '') then
          setField(fieldName, Value);
      end
      else if (getField(fieldName) <> '') then
        setField(fieldName, Value2 + #13#10 + #13#10 + Value)
      else
        setField(fieldName, Value2);
    end;
  end;


    // Rating
    if CanSetField(fieldRating) then
    begin
  //   (Remove the "//" of the next two lines beginning with "Value" and add "//" to the following two lines beginning with Value
  //   if you would like to import arithmetic ratings instead of IMDB's user ratings)
  //    Value := ConvertToASCII(GetPage(MovieURL + '/ratings'));
  //    Value := TextBetween(Value, 'Arithmetic mean = ', '. ');
  // *** not sure that changing that still works, to be confirmed
      Value := TextBetween(PageText, '<span class="ipl-rating-star__rating">', '</span>');
      if Value <> '' then
        if (GetOption('RoundRating') = 1) then
          SetField(fieldRating, IntToStr(Round(StrToFloat(Value))))
        else
          SetField(fieldRating, Value);
    end;
    if GetOption('UserRatings') > 0 then
      begin
   Value := TextBetween(PageText, 'total-votes">(', ')<');
    // Value := TextBetween(PageText, '<a href="ratings" class="tn15more">', '</a>');
      if Value <> '' then
        Value := Copy(GetField(fieldRating), Pos('(', GetField(fieldRating)) + 1, Pos(')', GetField(fieldRating)) - Pos('(', GetField(fieldRating)) - 1) + '' + Value;
      if (GetOption('UserRatings') = 1) and (Value <> '') and (CanSetField(fieldsubtitles)) then
        SetField(fieldsubtitles, Value);
      if (GetOption('UserRatings') = 2) and (Value <> '') then
        SetField(fieldComments, GetField(fieldComments) + #13#10 + #13#10 + Value);
    end;
  
    
MrObama2022 wrote: 2025-07-07 09:10:43 @Dorohedoro next release: I'll try to add iMDB actor images inside iMDB script
That would be a dream come true!!!! :clapping:

Thank you so much for your hard work!
Last edited by Dorohedoro on 2025-07-07 21:25:38, edited 1 time in total.
MrObama2022
Posts: 103
Joined: 2022-02-02 00:03:55

Re: IMDB script doesn't work

Post by MrObama2022 »

New version here: 5.3 beta 1

CHANGELOG
* added actor images script (read details below)
* removed MediaTypeParameter (unused)

How this works: I simply added the main functions from "IMDB (Actor images)" and I added the same parameters, renaming it:
SelectionMode -> ActorsImagesSelectionMode
NumberOfActors -> ActorsImagesNumberOfActors
ActorImage -> ActorsImagesMode
ImageLayout -> ActorsImagesLayoutType

About ActorsImagesLayoutType I added a new parameter value: 3 (do nothing). This is the default value. So if you try this version and you don't change that value nothing new should happen.

If you want to test you have to set these 4 parameters (use the same values used in "IMDB (Actor images)" script and set the extra fields as in in picture below:

Image
MrObama2022
Posts: 103
Joined: 2022-02-02 00:03:55

Re: IMDB script doesn't work

Post by MrObama2022 »

please test this new function as long as possible. I never used "IMDB (Actor images)" script before so I don't know how all this should work. I just did only one test with only one movie, so ...

If you have suggestions or new feature or other improvements or if you want to improve parameter naming, code comments, code variables, tell me ...
MrObama2022
Posts: 103
Joined: 2022-02-02 00:03:55

Re: IMDB script doesn't work

Post by MrObama2022 »

Dorohedoro wrote: 2025-07-07 19:55:41 Btw, if anyone is interested this is the code to retrieve the vote count into the subtitle field
Tell me what you want to get whit the code, can I have an example and some screenshot?
Dorohedoro
Posts: 69
Joined: 2016-12-13 00:45:45

Re: IMDB script doesn't work

Post by Dorohedoro »

MrObama2022 wrote: 2025-07-07 20:29:11 please test this new function as long as possible. I never used "IMDB (Actor images)" script before so I don't know how all this should work. I just did only one test with only one movie, so ...

If you have suggestions or new feature or other improvements or if you want to improve parameter naming, code comments, code variables, tell me ...
My God, you are fast :clapping:. I will be testing this feature a lot, so, don't worry I will come here if anything is broken.

Thank you!

MrObama2022 wrote: 2025-07-07 20:38:45
Dorohedoro wrote: 2025-07-07 19:55:41 Btw, if anyone is interested this is the code to retrieve the vote count into the subtitle field
Tell me what you want to get whit the code, can I have an example and some screenshot?
That code I just shared retrieves the number of votes a rating has and puts it in the subtitle field. For me, this is priceless information, because a movie with a 6.5 rating and 100 votes is not the same as one with a 6.5 rating and 100,000 votes. If you’d like, you can further polish it and add it to the main script.

Number of votes in the imdb page:

Image

And this is what my code does in my custom layout:

Image
Post Reply