Page 3 of 3

Re: [REL] IMDB

Posted: 2025-10-11 10:48:47
by antp
MrObama2022 wrote: 2025-10-07 22:16:08 IMDB 5.5 beta 5

CHANGELOG
* fix composer, actors, writers and producers

IMDB is switching to a new json format in its javascript page. This fix should work with both new and old format.

Only tested on 4 movies.
Thanks :)
If I find some time for it, I can try to also help, but I always have so many things to do in the few free time available :(

Re: [REL] IMDB

Posted: 2025-10-12 04:29:13
by Radagast
MrObama2022 wrote: 2025-10-07 22:16:08 IMDB 5.5 beta 5

CHANGELOG
* fix composer, actors, writers and producers

IMDB is switching to a new json format in its javascript page. This fix should work with both new and old format.

Only tested on 4 movies.
Great to see ExternalCurlHandler master comeback :D
Mainly I use FilmAffinity to get information, but after use it I update some fields with IMDB because I like more the information get from IMDB on these fields. Producer because IMDB gives names and not company, actors because have actor name and his character name, country because filmaffinity only gets one in the case have more than one, and picture because IMDB usually gives similar quality with less filesize.

I let to show the bugs I see to help improve script. First my settings script are this.

Code: Select all

Infos.OldFormat=0
Options.ActorsImagesLayoutType=3|3|0=Original uncut image (huge!)|1=Image from movie page (fast)|2=Image from actor page (slow)|3=Do nothing
Options.ActorsImagesMode=0|0|0=No actor image needed|1=Import only actors with image
Options.ActorsImagesNumberOfActors=1|1|0=choose ONE actor|1=first FIVE actors|2=first TEN actors
Options.ActorsImagesSelectionMode=0|0|0=ADD images (Standard)|1=REPLACE selected images|2=EXCHANGE actors
Options.ActorsLayout=4|0|0=Only actor names, separated by commas|1=Only actor names, separated by linebreaks|2=Actors names with character names between parenthesis separated by commas|3=Actors names with character names between parenthesis separated by linebreaks|4=Actor names like on IMDB page, with "..." between names and roles, and separated by linebreaks
Options.AllActors=1|2|0=Import only main actors from the top of the page (forcing ActorsLayout=0)|1=Import all possible actors|2=Import 10 first actors (number defined in script parameters, below the options)
Options.AspectRatio=0|1|0=Do not import picture aspect ratio|1=Import picture aspect ratio to video format field|2=Import picture aspect ratio to resolution field
Options.Awards=0|0|0=Do not import awards|1=Import awards to Description field, after the summary|2=Import awards to Comments field, after comments
Options.BatchMode=0|0|0=Normal working mode, prompts user when needed|1=Does not display any window, takes the first movie found|2=Same as 1, but it uses the URL field if available to update movie information|3=Same as 2, but it uses the IMDB field if available to update movie information
Options.CommentType=0|0|0=Top user review|1=10 most useful user reviews|2=No user comment, clear current field contents|3=No user comment, keep current field contents (may cause problem for multiple imports on the same movie if other options append text to the comment field)
Options.ConvertToASCII=0|0|0=Do not change special characters and accents.|1=Replace special characters and accents by basic ASCII characters
Options.DescriptionSelection=0|0|0=Short summary|1=Long summary
Options.EpisodeTitleSearch=0|0|0=Use "Find more" button on results list for next result pages if available (default)|1=Use "Find more" button on results list for episode title search instead
Options.GetTagline=0|1|0=Do not get tagline|1=Put it in Description field, before the summary|2=Put it in the Comment field, before the comments
Options.ImageKind=5|1|0=No image|1=IMDB small image, no image if none available|2=IMDB small image, "No Poster Available" if none available|3=IMDB large image - size defined in parameters below the options (720p by default), no image if none available|4=IMDB original country poster|5=IMDB original country large image - size defined in parameters below the options (720p by default)
Options.MPAA=0|0|0=Do not import MPAA rating|1=Import MPAA rating to MediaType|2=Append MPAA rating and info to Comments
Options.MultipleValuesAudioFormat=3|1|0=Only take first value for Audio Format|1=Take full list, separated by commas|2=Take full list, separated by slashes|3=Do not import Audio Format / Sound Mix
Options.MultipleValuesCategory=1|1|0=Only take first value for Category|1=Take full list, separated by commas|2=Take full list, separated by slashes|3=Do not import Category
Options.MultipleValuesCountry=1|1|0=Only take first value for Country|1=Take full list, separated by commas|2=Take full list, separated by slashes|3=Do not import Country
Options.MultipleValuesLanguages=3|1|0=Only take first value for Languages|1=Take full list, separated by commas|2=Take full list, separated by slashes|3=Do not import Languages
Options.PopularSearches=1|1|0=Do not use the popular searches page directly show full search results|1=Show popular searches first, I'll click on 'Find more' if needed (much faster)
Options.RoundRating=0|0|0=Do not round Rating|1=Round Rating to whole number
Options.Trivia=0|0|0=Do not import trivia|1=Import short trivia to Description field, after the summary|2=Import short trivia to Comments field, after the comments|3=Import full trivia to Description field, after the summary (need RapidAPI key)|4=Import full trivia to Comments field, after the comments (need RapidAPI key)
Options.UserRatings=0|0|0=Import value to ratings field only (default)|1=Import value and number of votes to Media Type field|2=Import value and number of votes to field set in UserRatingsField|3=Import number of votes to field set in UserRatingsField
Options.MediaType=0|0|0=Do not import media type|1=Import media type to media label field|2=Import media type to media type field|3=Import media type to custom field (defined in "MediaTypeField" parameter)
Options.TranslatedTitle=1|2|0=No translated title|1=Default translated title from the main movie page, depending on your location/country, use RapidAPI as backup|2=Try to retrieve from AKA page, using "UserCountry" setting, use RapidAPI as backup|3=Retrieve translated title from reference page, use RapidAPI as backup|4=Retrieve all translated titles using RapidAPI
Parameters.MaxActors=10|10|Max number of actors to retrieve when AllActors is set to 2
Parameters.UserCountry=Spain|United States|Country for certification and AKA title, enter the value as it is on IMDb, e.g. one of these: United States, Canada, Mexico, Brazil, Argentina, Australia, India, Italy, Spain, Portugal, France, Germany, Netherlands, United Kingdom, Ireland, Finland, Norway, Sweden, Switzerland, ...
Parameters.RapidAPIKey=HERE HAVE MY RAPIDAPIKEY||Get a free key to fully enable title translations: https://rapidapi.com (default = Missing)
Parameters.LargePictureHeight=720|720|Height in pixels for requesting the picture when using ImageKind=3 or 5
Parameters.UserRatingsField=||Set field number for userratings, allowed values 3: media; 4: mediaType; 5: source; 6: date; 7: borrower; 10: rating; 11: originalTitle; 12: translatedTitle; 14: director; 15: producer; 16: writer; 18: actors; 19: country; 20: year; 21: length; 22: category; 24: URL; 25: description; 26: comments (default); 28: videoFormat; 29: videoBitRate; 31: audioBitRate; 32: resolution; 33: frameRate; 34: langagues; 35: subtitles; 36: size; 37: disks
1- When get information from movies and TVseries, only get actors name, not the character names

2- When get information from movies and TVseries, don't get any information on comments field

3- When get information from TVseries, don't get any information on producer, writer and composer. This bug is only in TVseries and it's not new, I had it from long time ago but didn't comment before. I try to change UserCountry but it's the same.

4- As I comment I use it to update information after FilmAffinity script and I have two kinds of error when the script is trying to get information from IMDB related to URL Fields.Excluded setting. If the URL it's not excluded there are no error and the script get the IMDB url.
When the URL it's excluded and the URLfield it's empty the script gives the error IOHandler value is not valid
When the URL it's excluded and the URLfield has a FilmAffinity URL because I'm updating fields the script gives the error HTTP/1.1 403 Forbidden
Seems like when the URL Fields.Excluded setting it's active, the script try to access to a URL using the value in URLfield. 403 it's the error that gives FilmAffinity without using ExternalCurlHandler.pas

5- When the script it's running and select a movie after the search, if finally for some reason on movie information window I click on "Skip" or "abort" button or close the window this kind of lines are add to scripts.ini file, and finally it makes so big. Maybe it's a debug information?

Code: Select all

Static.=Picture Error at movie #4883 - The Passion of the ChristPicture Error at movie #4884 - RebelPicture Error at movie #4885 - aka Charlie SheenPicture Error at movie #354 - Lin Shi RongPicture Error at movie #27 - SwiriPicture Error at movie #21 - VersaillesPicture Error at movie #29 - CollateralPicture Error at movie #29 - CollateralPicture Error at movie #29 - CollateralPicture Error at movie #17 - Finding NeverlandPicture Error at movie #17 - Finding NeverlandPicture Error at movie #4886 - CollateralPicture Error at movie #4887 - SuperstorePicture Error at movie #4887 - Superstore
Picture Error at movie #4887 - Superstore
Picture Error at movie #4887 - Superstore
Picture Error at movie #4887 - Superstore
Picture Error at movie #4887 - Superstore

Picture Error at movie #4887 - Superstore
Picture Error at movie #4887 - Superstore
Picture Error at movie #4887 - Superstore
Picture Error at movie #4887 - Superstore
Picture Error at movie #4886 - Collateral
Picture Error at movie #4886 - Collateral
Picture Error at movie #4886 - Collateral
Picture Error at movie #4886 - Collateral
Picture Error at movie #17 - Finding Neverland
Picture Error at movie #17 - Finding Neverland
Picture Error at movie #17 - Finding Neverland
Picture Error at movie #17 - Finding Neverland
Picture Error at movie #17 - Finding Neverland
Picture Error at movie #17 - Finding Neverland
Picture Error at movie #17 - Finding Neverland
Picture Error at movie #17 - Finding Neverland
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #29 - Collateral
Picture Error at movie #21 - Versailles
Picture Error at movie #21 - Versailles
Picture Error at movie #21 - Versailles
Picture Error at movie #21 - Versailles
Picture Error at movie #27 - Swiri
Picture Error at movie #27 - Swiri
Picture Error at movie #27 - Swiri