[REL] IMDB

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.
Mickxe
Posts: 1
Joined: 2025-11-01 12:34:49

Re: [REL] IMDB

Post by Mickxe »

It's unable to get the movie number in the procedure AnalyzeMoviePage, so it's trying to get a page that doesn't exists, "https://www.imdb.com/title/tt/reference"

Adding another if statement to catch the number let me run the script again, this worked for me:

if MovieNumber = '' then
MovieNumber := TextBetween(PageText,'"meta":{"canonicalId":"tt', '","publicationStatus');

Image

Maybe more things need to be adjusted, there's nothing like "rel="canonical"" or "legacy/title" in the page source anymore.
Last edited by Mickxe on 2025-11-02 06:25:27, edited 1 time in total.
antp
Site Admin
Posts: 9776
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [REL] IMDB

Post by antp »

Thanks!
Often it is indeed just small changes like this, I didn't had time in the last days to check what was the issue.
The rest of the code is probably useless, from older versions of the site. Some day some cleaning should be done, but just in case old pages are sometimes returned in some cases, I tend not to delete these too quickly :)
I added a test so the next time it can not extract the movie number, it stops with a message rather than continue with an invalid address.
Dorohedoro
Posts: 93
Joined: 2016-12-13 00:45:45

Re: [REL] IMDB

Post by Dorohedoro »

Mickxe wrote: 2025-11-01 12:52:49 It's unable to get the movie number in the procedure AnalyzeMoviePage, so it's trying to get a page that doesn't exists, "https://www.imdb.com/title/tt/reference"

Adding another if statement to catch the number let me run the script again, this worked for me:

if MovieNumber = '' then
MovieNumber := TextBetween(PageText,'"meta":{"canonicalId":"tt', '","publicationStatus');

Image

Maybe more things need to be adjusted, there's nothing like "rel="canonical"" or "legacy/title" in the page source anymore.
Thanks! it's working again.

Almost everything fine on my end, besides not extracting the awards and ignoring some aspect ratios.
phil5660
Posts: 42
Joined: 2017-12-24 08:59:17

Re: [REL] IMDB

Post by phil5660 »

It's working for me, many thanks !
antp
Site Admin
Posts: 9776
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: [REL] IMDB

Post by antp »

I fixed the IMDb script again (version 5.5.08), as the search was showing blank results.
I also fixed actors' roles.
I added a check to avoid importing actor images when ActorsImagesMode = 0, as these were always imported no matter what option was set there (so if you want these but they are not imported anymore, just check in the options on the right and set that one to 1).
humungus
Posts: 39
Joined: 2010-03-23 00:29:01

Re: [REL] IMDB

Post by humungus »

Thanks, antp! I just updated a few movies, and it worked like a charm for my settings. :grinking: Character names (and actor tags) are back, and no more "Importing picture from the internet..." pop-ups for me.
LeMoi
Posts: 181
Joined: 2006-04-09 11:26:43

Re: [REL] IMDB

Post by LeMoi »

It seems to work fine for now, all the fields I use are well retrevied.
Thanks for the update :)
Post Reply