1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +00:00

Apply refactoring suggested by @rautamiekka

This commit is contained in:
DarkFighterLuke 2022-02-27 01:30:18 +01:00
parent caa0f4be1b
commit f124fd7f68

View file

@ -152,8 +152,7 @@ class XVideosIE(InfoExtractor):
creator = '' creator = ''
uploader_url = '' uploader_url = ''
if creator_data != []: if creator_data != []:
creator = creator_data[0][1] uploader_url, creator = creator_data[0][0:2]
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_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 = []