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:
parent
f124fd7f68
commit
f2a095884c
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue