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(',') 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_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 = '' creator = None
uploader_url = '' uploader_url = None
if creator_data != []: if creator_data != []:
uploader_url, creator = creator_data[0][0:2] uploader_url, creator = creator_data[0][0:2]