IMDB Script not working

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.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: IMDB Script not working

Post by antp »

It is not sure that IMDb didn't change anything though. One thing to try if you can easily change the user agent in your browser is to check if it still displays the accents correctly when requesting a page with AMC's user agent,

Code: Select all

Mozilla/5.0 (compatible; Ant Movie Catalog)
Otherwise it may be due to the way that the Indy 10 library converts characters internally, as they changed things in it, but it should just return UTF8 which is then converted by AMC to local character set...
Iemanja
Posts: 2
Joined: 2017-12-25 10:11:46
Location: The Netherlands

Re: IMDB Script not working

Post by Iemanja »

antp wrote: 2018-04-29 15:07:24
Iemanja wrote: 2018-04-25 04:33:01 When I use IMDB URL for searching a movie, the program returns nothing at all. Using the movie title works fine, I pre fer to use the URL though.
I would appreciate any comment.
Regards
With non-HTTPS urls indeed there was a problem, fixed (v4.011)
If other cases cause a problem, please provide an example
Did a fast check tonight and url is working fine now, thank you very much!
spikulev
Posts: 8
Joined: 2017-12-26 20:22:35

Re: IMDB Script not working

Post by spikulev »

antp wrote: 2018-04-29 18:49:51 It is not sure that IMDb didn't change anything though. One thing to try if you can easily change the user agent in your browser is to check if it still displays the accents correctly when requesting a page with AMC's user agent,

Code: Select all

Mozilla/5.0 (compatible; Ant Movie Catalog)
Otherwise it may be due to the way that the Indy 10 library converts characters internally, as they changed things in it, but it should just return UTF8 which is then converted by AMC to local character set...
Tried 2 more things:

1. Clean Installed the beta app on an English language system
2. Worked via VPN "sorta" from Norway

The problem remains. That means the system settings and location are not the reason?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: IMDB Script not working

Post by antp »

When you say "English language system", it does not depends on the language of the system but on the system locale for non-unicode programs :

Image

There was also a tool for forcing that setting for a particular application: https://en.wikipedia.org/wiki/AppLocale
But it seems that Microsoft made it disappear.

Though that if AMC can already display accents correctly, it should not be the problem I think...
I'm out of idea for the moment :/
spikulev
Posts: 8
Joined: 2017-12-26 20:22:35

Re: IMDB Script not working

Post by spikulev »

I changed all the settings on the Region Tabs (Formats, Location, Administrative) to French (Belgium), Belgium, French (Belgium). No effect :-(
StefMir
Posts: 55
Joined: 2011-05-31 19:07:43

Re: IMDB Script not working

Post by StefMir »

I cannot get the number of votes to comment nor Media Type fields (UserRatings set to 1 / 2)...
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: IMDB Script not working

Post by antp »

These are options from the old versions of the script, I'm not sure they were ever working since the last big changes of IMDb in end of last year. Or did you notice that it changed recently?
spikulev
Posts: 8
Joined: 2017-12-26 20:22:35

Re: IMDB Script not working

Post by spikulev »

Antp, any ideas why the problem stays even after I changed everything to French?
spikulev wrote: 2018-04-29 22:04:45 I changed all the settings on the Region Tabs (Formats, Location, Administrative) to French (Belgium), Belgium, French (Belgium). No effect :-(
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: IMDB Script not working

Post by antp »

Sorry, if you tried changing regional settings and VPN for testing with an European IP, I'm out of ideas :/
In case you haven't tested yet, one more thing to try that I mentioned previously is to change the useragent in your browser; there are addons in Firefox that do that, I suppose that in Chrome too (depending on which one you use), to check if you get a different page contents with AMC's useragent (and don't forget to switch back to default later).
e.g. in Firefox with "User Agent Switcher", with AMC added in the addon's options:
Image
(just select the new "AMC" entry at the bottom before going to IMDb)
davezn
Posts: 32
Joined: 2013-12-12 14:55:59
Location: RSA

Re: IMDB Script not working

Post by davezn »

all good, the fix worked.
Thanks You,
regards
Davezn :grinking:
FurryGuy
Posts: 5
Joined: 2018-04-22 17:33:42

Re: IMDB Script not working

Post by FurryGuy »

antp wrote: 2018-04-29 15:01:29
FurryGuy wrote: 2018-04-22 17:41:04 The current updated IMDb script is missing data fields it previously found. Director, Producer, Composer, Writer fields are being retrieved as blank.
Coming back to this bug for the series, Director & Producer are not listed for series anyway. Composer & Writer are imported from the list further down in the Reference page, not from the few fields at the top, so importing these for series is annoying to do because it can't be processed by the same function that process all the other cast members (actors etc.)
Maybe I'll check that later.
The "Full Cast and Crew" IMDb page for both movies and TV series list director, composer (music), writer, etc. credits. Is this the Reference page the script uses?

Examples:

Roseanne (1988) TV series
https://www.imdb.com/title/tt0094540/fullcredits

The Avengers (2012) movie:
https://www.imdb.com/title/tt0848228/fullcredits
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: IMDB Script not working

Post by antp »

FurryGuy
Posts: 5
Joined: 2018-04-22 17:33:42

Re: IMDB Script not working

Post by FurryGuy »

Maybe a change from the Reference page to the Full Cast and Crew page would help solve the missing data field issue.

Not that I am any good at writing/modifying scripts.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: IMDB Script not working

Post by antp »

I think it would require to rewrite a lot of the code.
Also, the idea of using the reference page was to get all the data from the same page, which is much faster than having to download multiple pages.
Post Reply