Page 4 of 8
Re: IMDB script doesn't work
Posted: 2025-06-19 18:02:10
by Dorohedoro
MrObama2022 wrote: 2025-06-19 17:57:55
antp wrote: 2025-06-19 17:44:33
Munkey wrote: 2025-06-19 14:15:29
I think this whole script needs to be rewritten to something more modern instead of getting stuff from HTML elements.
Or were you thinking about something else than parsing public pages? IMDb does not provide free APIs to retrieve their data more efficiently, as far as I know.
We could try to use JsonUtils.pas, I don't know if it could work ...
Maybe in next months all the imdb pages we'll be converted in the new format
The new version is a huge leap forward, amazing work thanks.
For my options is almost perfect but I think there is a problem with movies like this that have more than one Director:
https://www.imdb.com/title/tt0387059/reference/
It fails to retrieve the data. The rest seems prefectly ok, even the posters.
Re: IMDB script doesn't work
Posted: 2025-06-19 21:02:02
by MrObama2022
New version here:
5.0 beta 5
CHANGELOG
* added Certification
* fixed ActorsLayout 4 (added attributes, if any)
* added DescriptionSelection
* fixed MediaType 3 (but still doesn't work)
Notes: for DescriptionSelection Short/Long I tried to guess how this could mean. So
here (sorry for this random url) you have 2 plot, an outline plot (the one near the poster) and a summary plot (below in the page). In this random url the outline plot is smaller then the summary plot. So: if you select DescriptionSelection Short you always get the first one (near the poster), if you select Long you get the other one and, if it's missing, it select the first one. If this should work in a different way, please explain using an url and copy and paste both short and long description
To do:
* check Awards
* check CommentType
* TESTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
Re: IMDB script doesn't work
Posted: 2025-06-19 21:03:02
by MrObama2022
Thank you for this test, I'll try asap
Re: IMDB script doesn't work
Posted: 2025-06-19 21:24:03
by MrObama2022
New version
5.0 beta 6
CHANGELOG
* fixed Director
Thank you all for addressing me with this issue. Now, for the first time after days, I'll do some test ...
Still have to fix imagekind 3 ...
And I'll try to update ItalianMultisite too (this is for italian people only) ...
Re: IMDB script doesn't work
Posted: 2025-06-19 21:58:23
by Valmiki
MrObama2022 wrote: 2025-06-19 21:24:03
New version
5.0 beta 6
CHANGELOG
* fixed Director
Thank you all for addressing me with this issue. Now, for the first time after days, I'll do some test ...
Still have to fix imagekind 3 ...
And I'll try to update ItalianMultisite too (this is for italian people only) ...
Sorry. I get an error:
Errore script in "IMDB": unknown identifier: GETVALUE linea 986
This is the code, line 985 and line 986:
if (GetParam('UserCountry') = 'United States') then
SetField(fieldMediaType, getValue(fieldCertification))
Hope it makes sense.
Re: IMDB script doesn't work
Posted: 2025-06-19 22:00:49
by MrObama2022
Thank you. Replace getValue with getField, save and retry
Re: IMDB script doesn't work
Posted: 2025-06-19 22:02:55
by humungus
Thanks again, MrObama2022!
I tried Beta 6 script on:
1.
https://www.imdb.com/title/tt0077355/reference/
2.
https://www.imdb.com/title/tt0113101/reference/
3.
https://www.imdb.com/title/tt3457734/reference/
Movie 1. now returns Certification (albeit TV-PG rather than PG, but this has always been an issue with multiple ratings for United States, so you may ignore it) as well as actors' "as" and "uncredited" attributes except in this instance:
Donald Wayne (uncredited)
is retrieved as simply
Donald Wayne
Movie 2. has the same issue as Movie 1. with
Russell Vossler (uncredited)
being retrieved as simply
Russell Vossler
Additionally, the actors' "segment" attributes such as
Valeria Golino Athena (segment "The Missing Ingredient")
are retrieved as
Valeria Golino ... Athena (segment \The Missing Ingredient\)
I don't know where the \'s come from. With the old script/IMDb page, the result was
Valeria Golino ... Athena (segment "The Missing Ingredient")
More importantly, however, Movie 2. retrieves only one of five directors:
Allison Anders director (segment "The Missing Ingredient")
Alexandre Rockwell director (segment "The Wrong Man")
Robert Rodriguez director (segment "The Misbehavers")
Quentin Tarantino director (segment "The Man from Hollywood")
Chuck Jones director (animation sequences) (uncredited)
Of these only "Allison Anders" (with no attributes) is retrieved. (note: director attributes have never been retrieved, so that is not an issue)
Movie 3. retrieves both directors, possibly because they don't have any attribute.
Re: IMDB script doesn't work
Posted: 2025-06-19 22:05:37
by Dorohedoro
MrObama2022 wrote: 2025-06-19 21:24:03
New version
5.0 beta 6
CHANGELOG
* fixed Director
Thank you all for addressing me with this issue. Now, for the first time after days, I'll do some test ...
Still have to fix imagekind 3 ...
And I'll try to update ItalianMultisite too (this is for italian people only) ...
Thanks to you!!!
Re: IMDB script doesn't work
Posted: 2025-06-19 23:54:08
by MrObama2022
I have still a lot of works to do ... on actors ... and I still have to do awards ...
Re: IMDB script doesn't work
Posted: 2025-06-20 07:47:24
by Valmiki
MrObama2022 wrote: 2025-06-19 22:00:49
Thank you. Replace getValue with getField, save and retry
Thank you so much. I it works now.
About the issue with director. I think you almost did it. On this movie
https://www.imdb.com/title/tt0356150 now it retrieves 2 directors, which is better than 1. Still there are 3 directors ...

(Jeff Schaffer, Alec Berg, David Mandel)
You are almost there man. Appreciating so much your hard work. Wish I could do something more
Re: IMDB script doesn't work
Posted: 2025-06-20 14:51:03
by Munkey
antp wrote: 2025-06-19 17:44:33
Munkey wrote: 2025-06-19 14:15:29
I think this whole script needs to be rewritten to something more modern instead of getting stuff from HTML elements.
Or were you thinking about something else than parsing public pages? IMDb does not provide free APIs to retrieve their data more efficiently, as far as I know.
It has free public API... TLDR: Look at this PR I made using it:
https://github.com/Purfview/IMDb-Scout- ... 922f5e4e2b
I'll try to implement it in AMC script.
Don't hold your breath as I don't know Pascal, I would need to deduct how it works and looks like here is no real JSON parser...
Re: IMDB script doesn't work
Posted: 2025-06-20 16:34:24
by MrObama2022
Munkey wrote: 2025-06-20 14:51:03
It has free public API... TLDR: Look at this PR I made using it:
https://github.com/Purfview/IMDb-Scout- ... 922f5e4e2b
I'll try to implement it in AMC script.
Don't hold your breath as I don't know Pascal, I would need to deduct how it works and looks like here is no real JSON parser...
They have a free trial and they have free access only if you have a paid AWS data exchange account
https://zuplo.com/blog/2024/10/03/best- ... db-vs-tmdb
This project looks nice but I don't know if this can remain free & legal forever and when you get info from other site you can't be 100% sure they are updated.
https://imdbapi.dev/
With the new format (I think the old one will be dismessed soon or it already is) you get a similar json from the page, so you don't get a huge boost using another json. FreePascal doesn't have a native jsondecode function, so it get some time to manually get information from the json
Re: IMDB script doesn't work
Posted: 2025-06-20 17:01:23
by Munkey
MrObama2022 wrote: 2025-06-20 16:34:24
They have a free trial and they have free access only if you have a paid AWS data exchange account
I dunno about that, it just works.
Re: IMDB script doesn't work
Posted: 2025-06-20 18:48:08
by antp
Thanks

I'll publish the update
Re: IMDB script doesn't work
Posted: 2025-06-20 19:30:48
by Dorohedoro
MrObama2022 wrote: 2025-06-19 21:24:03
New version
5.0 beta 6
CHANGELOG
* fixed Director
Thank you all for addressing me with this issue. Now, for the first time after days, I'll do some test ...
Still have to fix imagekind 3 ...
And I'll try to update ItalianMultisite too (this is for italian people only) ...
Thanks for the update.
The problem with Directors is still there, now if a movie has more than 2 directors it only takes the first two and the rest will be left out.
This movie will serve you as an example:
https://www.imdb.com/title/tt0022981/reference/
Re: IMDB script doesn't work
Posted: 2025-06-20 20:55:59
by humungus
I just noticed that Actors are no longer retrieved for any movie I try (at least, not with settings ActorsLayout = 4, AllActors = 1). They are retrieved with beta 4, but not beta 6.
Re: IMDB script doesn't work
Posted: 2025-06-20 21:03:10
by Dorohedoro
humungus wrote: 2025-06-20 20:55:59
I just noticed that Actors are no longer retrieved for any movie I try (at least, not with settings ActorsLayout = 4, AllActors = 1). They are retrieved with beta 4, but not beta 6.
same here
ActorsLayout=0
Allactors=1
Re: IMDB script doesn't work
Posted: 2025-06-20 22:10:54
by MrObama2022
Ok, new version here:
5.0 release candidate 1
CHANGELOG
* added Awards
* fixed directors
* fixed actors
* fixed html/encode errors
* fixed bugs & errors
As you can read, this is a release candidate and no more a beta, so this should be a big improvement over previous version.
I am really very very grateful for your feedback, I have studied them all and each of them has helped me find an error, so thank you so much. Keep giving me feedback, every time you find an error let me know the URL, settings and parameters, the result you receive and what you would have liked to receive.
To do:
* update ItalianMultisite
* TESTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
Re: IMDB script doesn't work
Posted: 2025-06-20 22:31:49
by humungus
And we are very, very grateful for your efforts!
That said, I just had a quick look at
https://www.imdb.com/title/tt0113101/reference/ again and these are the directors retrieved:
Allison Anders, Alexandre Rockwell, Robert Rodriguez
But these should be retrieved:
Allison Anders, Alexandre Rockwell, Robert Rodriguez, Quentin Tarantino, Chuck Jones
The Actors look perfect now for this, "Coma" and that "Endeavour" episode. I'll try some more movies. I'll let you know if I notice anything else.
Re: IMDB script doesn't work
Posted: 2025-06-20 23:24:17
by LeMoi
Hello and thanks for latest updates.
I have an error while launching the script, 'A call to an OS function failed', what could be the cause?
I use AMC 4.2.3
Thank you in advance