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]]
|
credits = [c for c in credits if c[1]]
|
||||||
|
|
||||||
self['credits'] = []
|
self['credits'] = []
|
||||||
|
self['lyricist'] = []
|
||||||
|
self['singer'] = []
|
||||||
for department, crew in credits:
|
for department, crew in credits:
|
||||||
department = department.replace('(in alphabetical order)', '').strip()
|
department = department.replace('(in alphabetical order)', '').strip()
|
||||||
for c in crew:
|
for c in crew:
|
||||||
|
name = c[0]
|
||||||
|
roles = c[1]
|
||||||
self['credits'].append({
|
self['credits'].append({
|
||||||
'name': c[0],
|
'name': name,
|
||||||
'roles': c[1],
|
'roles': roles,
|
||||||
'deparment': department
|
'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']:
|
if not self['credits']:
|
||||||
del self['credits']
|
del self['credits']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue