feature request: make imdbURL_base configurable

8 views
Skip to first unread message

Zsolt Ero

unread,
May 18, 2013, 11:08:55 AM5/18/13
to imdbpy...@googlegroups.com
So far, the only way with imdbpy to get international English names for movies and not something which depends on GeoIP location is to modify imdbURL_base to:

imdbURL_base = 'http://www.imdb.co.uk/'

This is working 100% reliable and have been for a couple of years, but I have to do it manually after each hg pull. The akas gives GeoIP dependent information, which I believe is not what most people want.

I'd like to ask to either:
1. Make it possible to get the English name even with using the akas server (last time I checked it was impossible)
2. The best option, make URL_base a parameter in imdb.IMDb()

I think 2. is seriously the best option, this way people could just configure which internationalization they would like to use!

How do you get the standard, English names for movies normally?



Davide Alberani

unread,
May 18, 2013, 11:29:34 AM5/18/13
to imdbpy...@googlegroups.com
On Sat, May 18, 2013 at 5:08 PM, Zsolt Ero <zsol...@gmail.com> wrote:
>
> So far, the only way with imdbpy to get international English names for
> movies and not something which depends on GeoIP location is to modify
> imdbURL_base to:

This feature was introduced some versions ago.
You can use the imdb.IMDb 'imdbURL_base' argument, or
set it in your ~/.imdbpy.cfg (a documented example is present
in the docs directory)

After you've created an istance of IMDb, you can even change
it later using its 'set_imdb_urls' method.


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

Zsolt Ero

unread,
May 18, 2013, 3:41:15 PM5/18/13
to imdbpy...@googlegroups.com
Thanks! Now I'm using:

im = imdb.IMDb( 'http', timeout=120, imdbURL_base='http://www.imdb.co.uk/' )

and it works fine!



--
You received this message because you are subscribed to a topic in the Google Groups "imdbpy-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/imdbpy-users/ppxdGwtkae4/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to imdbpy-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages