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".*?(.*?)') + titles = re.compile("td>(.*?)\n\n(.*)").findall(titles) + return titles + def creditList(data, section=None): if section == 'cast': credits_ = re.compile('''(.*?).*?(.*?)''').findall(data)