parse lyricist, singer
This commit is contained in:
parent
d21b0b675c
commit
7041d1b316
1 changed files with 11 additions and 2 deletions
|
@ -512,14 +512,23 @@ class Imdb(SiteParser):
|
|||
credits = [c for c in credits if c[1]]
|
||||
|
||||
self['credits'] = []
|
||||
self['lyricist'] = []
|
||||
self['singer'] = []
|
||||
for department, crew in credits:
|
||||
department = department.replace('(in alphabetical order)', '').strip()
|
||||
for c in crew:
|
||||
name = c[0]
|
||||
roles = c[1]
|
||||
self['credits'].append({
|
||||
'name': c[0],
|
||||
'roles': c[1],
|
||||
'name': name,
|
||||
'roles': roles,
|
||||
'deparment': department
|
||||
})
|
||||
if department == 'Music Department':
|
||||
if 'lyricist' in roles:
|
||||
self['lyricist'].append(name)
|
||||
if 'playback singer' in roles:
|
||||
self['singer'].append(name)
|
||||
if not self['credits']:
|
||||
del self['credits']
|
||||
|
||||
|
|
Loading…
Reference in a new issue