Hi Kamiku,
searching for a movie, if it's available, the original title will be
in the 'akas' key (a list of strings, if present).

As an example, see the output for ID 0270841 from the following script:

from imdb import IMDb
ia = IMDb()
for movie in ia.search_movie('matrix'):
    print('id: %s; title: %s; akas: %s' % (movie.movieID,
movie.get('title'), ', '.join(movie.get('akas', []))))

OUTPUT:
id: 0133093; title: The Matrix; akas:
id: 0106062; title: Matrix; akas:
id: 5274778; title: Matrix; akas:
id: 0234215; title: The Matrix Reloaded; akas:
id: 0242653; title: The Matrix Revolutions; akas:
id: 0295432; title: The Matrix Revisited; akas:
id: 0270841; title: Cyber Wars; akas: Matrix Hunters: Kynigoi ston kyvernohoro
id: 1842414; title: Matrix IV; akas:
id: 9642498; title: The Matrix; akas:
id: 0328832; title: The Animatrix; akas:
id: 0277828; title: Enter the Matrix; akas:
id: 6301452; title: Matriarch; akas:
id: 0390244; title: The Matrix Online; akas:
id: 0364888; title: Threat Matrix; akas:
id: 0451118; title: The Matrix: Path of Neo; akas:
id: 9851526; title: The Matrix; akas:
id: 0211096; title: V-World Matrix; akas:
id: 1499960; title: The Living Matrix; akas:
id: 0274085; title: Sex and the Matrix; akas:
id: 8793748; title: Matrixx; akas:


Notice that there's no guarantee that the 'akas' key is present, and
no way to tell if it contains the original title or another very
popular title for the same movie.


Hope this helps,


On Tue, Jun 18, 2019 at 10:35 AM Kamiku <kam...@gmail.com> wrote:
>
> Hello,
>
> is there any way to retrieve the original title instead of the English title 
> when searching a movie with the http methods?
>
> The Changelog says "searching for a movie, the original titles are returned, 
> instead of AKAs" about the sql version, but I can't find anything about that 
> same feature for http.
>
> I'm trying to retrieve original titles from non-English titled movies, but so 
> far no luck.
>
> Kind regards,
>
> Kamiku
> _______________________________________________
> Imdbpy-help mailing list
> Imdbpy-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/imdbpy-help



-- 
Davide Alberani <davide.alber...@gmail.com>  [PGP KeyID: 0x3845A3D4AC9B61AD]
http://www.mimante.net/


_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to