Page 9 of 9

Re: IMDB Script not working

Posted: 2018-04-29 18:49:51
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...

Re: IMDB Script not working

Posted: 2018-04-29 20:55:29
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!

Re: IMDB Script not working

Posted: 2018-04-29 21:19:56
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?

Re: IMDB Script not working

Posted: 2018-04-29 21:27:50
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 :/

Re: IMDB Script not working

Posted: 2018-04-29 22:04:45
by spikulev
I changed all the settings on the Region Tabs (Formats, Location, Administrative) to French (Belgium), Belgium, French (Belgium). No effect :-(

Re: IMDB Script not working

Posted: 2018-05-04 12:24:53
by StefMir
I cannot get the number of votes to comment nor Media Type fields (UserRatings set to 1 / 2)...

Re: IMDB Script not working

Posted: 2018-05-04 20:49:17
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?

Re: IMDB Script not working

Posted: 2018-05-04 20:53:21
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 :-(

Re: IMDB Script not working

Posted: 2018-05-04 21:07:48
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)

Re: IMDB Script not working

Posted: 2018-05-08 10:20:10
by davezn
all good, the fix worked.
Thanks You,
regards
Davezn :grinking:

Re: IMDB Script not working

Posted: 2018-06-04 04:36:44
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

Re: IMDB Script not working

Posted: 2018-06-04 05:29:13
by antp

Re: IMDB Script not working

Posted: 2018-06-04 13:24:24
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.

Re: IMDB Script not working

Posted: 2018-06-04 20:09:37
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.