add AKATitles
This commit is contained in:
parent
e11f98b676
commit
e8e42401aa
1 changed files with 13 additions and 0 deletions
|
@ -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".*?<table.*?>(.*?)</table>')
|
||||
titles = re.compile("td>(.*?)</td>\n\n<td>(.*)</td>").findall(titles)
|
||||
return titles
|
||||
|
||||
def creditList(data, section=None):
|
||||
if section == 'cast':
|
||||
credits_ = re.compile('''<tr .*?<td class="nm">(.*?)</td><td class="ddd">.*?</td><td class="char">(.*?)</td></tr>''').findall(data)
|
||||
|
|
Loading…
Reference in a new issue