[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: 9773
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 !
Post Reply