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

Set uploader default values to None

This commit is contained in:
DarkFighterLuke 2022-02-27 01:41:22 +01:00
parent f124fd7f68
commit f2a095884c

View file

@ -149,8 +149,8 @@ class XVideosIE(InfoExtractor):
tags = self._search_regex(r'<meta name="keywords" content="xvideos,xvideos\.com, x videos,x video,porn,video,videos,(?P<tag>.+?)"', webpage, 'tags', group='tag', default='').split(',')
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 = ''
creator = None
uploader_url = None
if creator_data != []:
uploader_url, creator = creator_data[0][0:2]