mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-26 12:11:52 +00:00
Add default fallback values for creator_data
This commit is contained in:
parent
2606c3108e
commit
3aba2a7912
1 changed files with 5 additions and 2 deletions
|
@ -149,6 +149,9 @@ 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 = ''
|
||||||
|
uploader_url = ''
|
||||||
|
if creator_data is not None:
|
||||||
creator = creator_data[0][1]
|
creator = creator_data[0][1]
|
||||||
uploader_url = creator_data[0][0]
|
uploader_url = creator_data[0][0]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue