1

Trying to get the Title for "Blood Oath" from 1990 https://www.imdb.com/title/tt0100414/ .In this example am using Jupyter, but it works the same in my .py program:

movie = ia.get_movie('0100414')
movie
<Movie id:0100414[http] title:_Prisoners of the Sun (1990)_>

Am I doing something wrong? This seems to be the 'USA aka' title. I do know how to get the AKA titles back via the API, but just puzzled as to why it's returning this one. On the IMDB web page "Blood Oath" is listed - under the AKA section - as the "(original title)". Thank you.

dwids
  • 67
  • 2
  • 7

1 Answers1

1

What you do is correct.

IMDbPY takes the movie title from the value of a meta tag with property set to "og:title". So, what's considered the title of a movie depends on the decisions made by IMDb.

You can also use "original title" key, that is taken from what it's actually shown to the reader of the web page. This, however, is even more subject to change since it's usually shown in the language guessed by the IMDb web servers using the language set by a registered user, the settings of your browser or by geolocation of the IP.

So, for example, for that title I get "Blood Oath" via browser since my browser is set to English and "Giuramento di sangue (1990)" if I access movie['original title'] (geolocation of my IP, I guess)

To conclude, if you really need another title, you may get the whole list this way:

ia.update(movie, 'release info')
print(movie.get('akas from release info'))

You will get a list that you can parse looking for a string ending in '(original title)'

(disclaimer: I'm one of the main authors of IMDbPY)

Davide Alberani
  • 1,061
  • 1
  • 18
  • 28
  • Thank you for the quick and excellent answer. It made me realise that I wasn't quite using the latest build as I didn't have the "new" key 'original title'. All ok now. I am quite good with documenting; is there a place I could write this up in the documentation as a way of thanking you for your help? BTW my name is David, like you but no 'e' :-) – dwids Jan 20 '20 at 04:31
  • @dwids: great. The documentation is [here](https://imdbpy.readthedocs.io/en/latest/); if you find some places that could be improved, any pull request is welcome! (you can also mark the answer as correct, if it helped) – Davide Alberani Jan 21 '20 at 15:43