fix single cast

This commit is contained in:
j 2018-01-14 18:52:55 +01:00
parent c5414c6b89
commit e29d79f232

View file

@ -103,7 +103,7 @@ class Imdb(SiteParser):
're': [
' <table class="cast_list">(.*?)</table>',
'<td.*?itemprop="actor".*?>.*?>(.*?)</a>.*?<td class="character">(.*?)</td>',
lambda ll: [strip_tags(l) for l in ll]
lambda ll: [strip_tags(l) for l in ll] if isinstance(ll, list) else strip_tags(ll)
],
'type': 'list'
},