From e8e42401aabb70c9041b4e1aaa3fb4a33e6b14cd Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 2 Aug 2009 18:23:17 +0200 Subject: [PATCH] add AKATitles --- oxweb/imdb.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/oxweb/imdb.py b/oxweb/imdb.py index 09c65be..b158c39 100644 --- a/oxweb/imdb.py +++ b/oxweb/imdb.py @@ -236,6 +236,19 @@ def getMovieTitle(imdbId): info = getMovieInfo(imdbId) return info['title'] +def getMovieAKATitles(imdbId): + ''' + >>> getMovieAKATitle('0040980') + [(u'Frauen der Nacht', u'Germany'), + (u'Les femmes de la nuit', u'France'), + (u'Women of the Night', u'(undefined)')] + ''' + url = "%sreleaseinfo" % getUrlBase(imdbId) + data = getUrlUnicode(url) + titles = findRe(data, 'name="akas".*?