Add pornstars to pornhub extractor
Adds 'pornstars' as a dict item returned by _real_extract in pornhub.py. Returns a list of unicode strings which are the names of credited pornstars.
This commit is contained in:
parent
12a5134596
commit
341ff6ddff
@ -133,6 +133,8 @@ class PornHubIE(InfoExtractor):
|
||||
'height': height,
|
||||
})
|
||||
self._sort_formats(formats)
|
||||
|
||||
pornstars = [s.strip() for s in list(map(compat_urllib_parse_unquote, re.findall(r'<a class="pstar-list-btn".*href="/pornstar[^>]+>(.+?)<', webpage)))]
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
@ -146,6 +148,7 @@ class PornHubIE(InfoExtractor):
|
||||
'comment_count': comment_count,
|
||||
'formats': formats,
|
||||
'age_limit': 18,
|
||||
'pornstars': pornstars,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user