On Mar 21, Sébastien RAGONS <srag...@gmail.com> wrote: > Finally it works: [...] > give me: > http://www.imdb.fr/title/tt0499549/ > > then it will be easy to find the cover. > And for now it's the only thing i need
Maybe it's unnecessary, to do the search on the French site (but it's possible that I'm missing some of the implications of what you're doing). Searching the 'akas' server will give you titles in foreign languages (but it will show you the original title); after that you could get the URL of the movie you need, get its URL with the ia.get_imdbURL method and - if you want the French page - change this URL later. Anyway, limiting the scope to movie titles, I think there's room for improvement: wouldn't it be nice to be able to get the title in a given language (if it's present amongst the akas)? Something like a titleInLang(lang) method of the Movie class; it could scan the list of akas for the specific language. Caveat: I think that most of the times in the 'akas' key the _country_ is listed, and not the language - so we should provide a mapping between countries and their main language (this is already partially done in the 'articles' module, for different reasons: it should be extended). If you're interested in this feature, let me know if you want to work on it (in this case, open a Bitbucket account and fork imdbpy [1]) Otherwise, it goes in the "todo". :-) +++ [1] http://bitbucket.org/alberanid/imdbpy/ If you don't want to learn Mercurial - a thing I'm suggesting to anyone, by the way: it's amazing - you can work using patches. -- Davide Alberani <davide.alber...@gmail.com> [GPG KeyID: 0x465BFD47] http://www.mimante.net/ ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Imdbpy-devel mailing list Imdbpy-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-devel