Set uploader default values to None

This commit is contained in:
DarkFighterLuke 2022-02-27 01:40:37 +01:00
parent fa32787f2b
commit b804854e3b

View File

@ -100,8 +100,8 @@ class XNXXIE(InfoExtractor):
tags = self._search_regex(r'<meta name="keywords" content="porn,porn movies,free porn,free porn movies,sex,porno,free sex,tube porn,tube,videos,full porn,xxnx,xnxxx,xxx,pussy,(?P<tags>.+?)"', webpage, 'tags', group='tags', default='').split(',') tags = self._search_regex(r'<meta name="keywords" content="porn,porn movies,free porn,free porn movies,sex,porno,free sex,tube porn,tube,videos,full porn,xxnx,xnxxx,xxx,pussy,(?P<tags>.+?)"', webpage, 'tags', group='tags', default='').split(',')
uploader_data = re.findall(r'<a class=".+?-plate" href="(?P<uploader_url>.+?)">(?P<uploader_name>.+?)</a>', webpage) uploader_data = re.findall(r'<a class=".+?-plate" href="(?P<uploader_url>.+?)">(?P<uploader_name>.+?)</a>', webpage)
uploader_id = '' uploader_id = None
uploader_url = '' uploader_url = None
if uploader_data != []: if uploader_data != []:
uploader_url, uploader_id = uploader_data[0][0:2] uploader_url, uploader_id = uploader_data[0][0:2]