mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-01-30 22:59:48 +00:00
Fix checks on empty data
This commit is contained in:
parent
3aba2a7912
commit
e048a6184b
@ -151,13 +151,13 @@ class XVideosIE(InfoExtractor):
|
||||
creator_data = re.findall(r'<a href="(?P<creator_url>.+?)" class="btn btn-default label main uploader-tag hover-name"><span class="name">(?P<creator>.+?)<', webpage)
|
||||
creator = ''
|
||||
uploader_url = ''
|
||||
if creator_data is not None:
|
||||
if creator_data != []:
|
||||
creator = creator_data[0][1]
|
||||
uploader_url = creator_data[0][0]
|
||||
|
||||
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 = []
|
||||
if actors_data is not None:
|
||||
if actors_data != []:
|
||||
for actor_tuple in actors_data:
|
||||
actors.append({
|
||||
'given_name': actor_tuple[1],
|
||||
|
Loading…
Reference in New Issue
Block a user