mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-02-08 03:30:10 +09:00
Check whether actors_data has been found
This commit is contained in:
parent
48e5ff4bb1
commit
2606c3108e
@ -154,11 +154,12 @@ class XVideosIE(InfoExtractor):
|
|||||||
|
|
||||||
actors_data = re.findall(r'href="(?P<actor_url>/pornstars/.+?)" class="btn btn-default label profile hover-name"><span class="name">(?P<actor_name>.+?)</span>', webpage)
|
actors_data = re.findall(r'href="(?P<actor_url>/pornstars/.+?)" class="btn btn-default label profile hover-name"><span class="name">(?P<actor_name>.+?)</span>', webpage)
|
||||||
actors = []
|
actors = []
|
||||||
for actor_tuple in actors_data:
|
if actors_data is not None:
|
||||||
actors.append({
|
for actor_tuple in actors_data:
|
||||||
'given_name': actor_tuple[1],
|
actors.append({
|
||||||
'url': urljoin(url, actor_tuple[0]),
|
'given_name': actor_tuple[1],
|
||||||
})
|
'url': urljoin(url, actor_tuple[0]),
|
||||||
|
})
|
||||||
|
|
||||||
views = self._search_regex(r'<strong class="mobile-hide">(?P<views>.+?)<', webpage, 'views', group='views', default=0)
|
views = self._search_regex(r'<strong class="mobile-hide">(?P<views>.+?)<', webpage, 'views', group='views', default=0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user