[REL] IMDB ( via API )

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.
rossipaz
Posts: 6
Joined: 2025-12-04 11:56:44

Re: [REL] IMDB ( via API )

Post by rossipaz »

How do I set the plot language to Italian?
Munkey
Posts: 60
Joined: 2025-06-19 04:55:29

Re: [REL] IMDB ( via API )

Post by Munkey »

rossipaz wrote: 2026-05-02 17:39:25 How do I set the plot language to Italian?
Such feature is not implemented.
I'll check if it's possible.
Munkey
Posts: 60
Joined: 2025-06-19 04:55:29

Re: [REL] IMDB ( via API )

Post by Munkey »

rossipaz wrote: 2026-05-02 17:39:25 How do I set the plot language to Italian?
With 3.4.0 version you can retrieve Italian plots:

Code: Select all

3.4.0 - (2026/05/03) - New feature: You can now select the plot language with DescriptionLanguage1st.
                                    DescriptionLanguage2nd is fallback if a plot with 1st language is not found.
                                    If 2nd language is not found then it falls back to English.
phil5660
Posts: 48
Joined: 2017-12-24 08:59:17

Re: [REL] IMDB ( via API )

Post by phil5660 »

Hello, only one country is being retrieved for the "Country" field. Is it possible to modify the script so that all co-producer countries are taken into account? Thank you in advance.
Munkey
Posts: 60
Joined: 2025-06-19 04:55:29

Re: [REL] IMDB ( via API )

Post by Munkey »

phil5660 wrote: 2026-05-04 04:43:12 Hello, only one country is being retrieved for the "Country" field. Is it possible to modify the script so that all co-producer countries are taken into account? Thank you in advance.
It depends on what you've set for the MultipleValuesCountry option.
phil5660
Posts: 48
Joined: 2017-12-24 08:59:17

Re: [REL] IMDB ( via API )

Post by phil5660 »

By default, this is what is displayed

if GetOption('MultipleValuesCountry') = 0 then
if RegExprSetExec('^[^,]+', Countries) then
Countries := RegExprMatch(0);
SetField(fieldCountry, Countries);

What do I need to change?
Munkey
Posts: 60
Joined: 2025-06-19 04:55:29

Re: [REL] IMDB ( via API )

Post by Munkey »

phil5660 wrote: 2026-05-04 07:08:02 By default, this is what is displayed

if GetOption('MultipleValuesCountry') = 0 then
if RegExprSetExec('^[^,]+', Countries) then
Countries := RegExprMatch(0);
SetField(fieldCountry, Countries);

What do I need to change?
You don't need to change there anything.
phil5660
Posts: 48
Joined: 2017-12-24 08:59:17

Re: [REL] IMDB ( via API )

Post by phil5660 »

Thank you for your response.

Where do I need to change the setting to select more than one country?
Dorohedoro
Posts: 119
Joined: 2016-12-13 00:45:45

Re: [REL] IMDB ( via API )

Post by Dorohedoro »

Actors Images script updated:

https://mega.nz/file/Zf9C2QaZ#LMK-TSysm ... p9MzqFTLMc


New selection options:

New options:

0 = choose ONE actor (pick from list)
1 = choose TWO actors (pick from list)
2 = choose THREE actors (pick from list)
3 = choose FOUR actors (pick from list)
4 = choose FIVE actors (pick from list)
5 = first FIVE actors
6 = first TEN actors
7 = add all actors

I did this for two reasons:

1- convenience to manually pick more actors because some movies are badly sorted, for example: https://www.imdb.com/title/tt0320661/reference/ the first billed is the Gravedigger :wow:, I've made a script to solve this, but is not ready for the public yet, the same for the main script that has the same issue.

2- some weirdos like me want to have all actors in the catalog, beware, a lot of images will be downloaded if your catalog is huge, I'm working on a way for the script to share the same image for the same actors across the catalog.


Please tell me if you find bugs, thanks.
Munkey
Posts: 60
Joined: 2025-06-19 04:55:29

Re: [REL] IMDB ( via API )

Post by Munkey »

phil5660 wrote: 2026-05-04 08:14:20 Where do I need to change the setting to select more than one country?
There:

Image
phil5660
Posts: 48
Joined: 2017-12-24 08:59:17

Re: [REL] IMDB ( via API )

Post by phil5660 »

Thank you for your help, it works !
humungus
Posts: 50
Joined: 2010-03-23 00:29:01

Re: [REL] IMDB ( via API )

Post by humungus »

While we're on the topic of countries, the script has a small problem when the movie/TV episode on IMDb does not have a country listed.

sample movie: https://www.imdb.com/title/tt2326204
sample TV episode: https://www.imdb.com/title/tt1349467

First, as I run the script an error pops up: "Error: Unknown country code! Please report the error."

Then, if I click "OK" and let the script do its thing, I end up with text "movie" or "tvEpisode" in "Country" field.

Obviously, there aren't that many movies without a country, but there are indeed many such TV episodes. Neither of which presents a terrible problem with the script for me (I just delete that text and/or enter the country manually for TV episodes, it's obviously no different from the country of the series...), but I thought I'd mention it.

Note: I am using version 3.2.0 as versions 3.3.0 and 3.4.0 only have fixes/features I don't use, so I didn't see the need to update the script. If the issue I described is not present in version 3.4.0, obviously feel free to tell me off.
MMM
Posts: 25
Joined: 2023-07-12 12:37:18

Re: [REL] IMDB ( via API )

Post by MMM »

Dorohedoro wrote: 2026-05-04 11:08:14 5 = first FIVE actors
6 = first TEN actors
7 = add all actors
I tested it on a couple of movies and it works.
Could you add ''first FIFTEEN actors'' please ???
2- I'm working on a way for the script to share the same image for the same actors across the catalog.
Very, very, VERY usefull :clapping:

Not a bug but, I believe the picture should NOT be cut if it does not have ''standard'' ratio, or it will, in most cases, cut half of the face ou something like that.

Thank you for the work. :hihi:
Dorohedoro
Posts: 119
Joined: 2016-12-13 00:45:45

Re: [REL] IMDB ( via API )

Post by Dorohedoro »

MMM wrote: 2026-05-09 08:44:39
Dorohedoro wrote: 2026-05-04 11:08:14 5 = first FIVE actors
6 = first TEN actors
7 = add all actors
I tested it on a couple of movies and it works.
Could you add ''first FIFTEEN actors'' please ???
2- I'm working on a way for the script to share the same image for the same actors across the catalog.
Very, very, VERY usefull :clapping:

Not a bug but, I believe the picture should NOT be cut if it does not have ''standard'' ratio, or it will, in most cases, cut half of the face ou something like that.

Thank you for the work. :hihi:
For your request (first 15 actors) that's easy. I'm not really doing this, it was claude. Just upload the script in the claude chat (free version will do) and ask for any feature there, the hard part is already done: making the script work with the api.

As for the image cropping, do you have an example?
MMM
Posts: 25
Joined: 2023-07-12 12:37:18

Re: [REL] IMDB ( via API )

Post by MMM »

About the 15 images, I was able to change it, thank you. ;)

About the cropping:
The template I use (Nature) also cropped the images but I was able to change it, deleting the ''height value'' and now the thumbnails show like this:

Image

Image
This is the picture with no cropping downloaded with the actual IMDB script...clicking the thumbnail it opens the full picture like this one..

Image
This is the same picture with this script...clicking the thumbnail it also opens like it's shown here...cropped

I just could not find the ''height value'' to delete, I'm not a coder :cry:

Other than that, the script works fine, and also has room to improve, like ''share the same image for the same actors across the catalog'' :hihi: :hihi:

Thank you very much. :clapping:
Dorohedoro
Posts: 119
Joined: 2016-12-13 00:45:45

Re: [REL] IMDB ( via API )

Post by Dorohedoro »

The cropping comes from imdb, look how the image is like that in the actual website:

https://www.imdb.com/name/nm11118689/

That's why in the script there are options for the user to select, option 0 is no cropping and the result will be like in the image you shared of your catalog with no cropping.

Btw I managed (claude really) to make a script to share actor images across all movies, but it has too many moving parts (python, different folder, it's a bit of a mess really), it works for me, but is not for the public because it's weird.
Post Reply