mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 02:01:50 +00:00
[YouTube] Avoid crash in author extraction
This commit is contained in:
parent
ebdc82c586
commit
fa7f0effbe
1 changed files with 1 additions and 1 deletions
|
@ -448,7 +448,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
|
||||||
extract_attributes(self._search_regex(
|
extract_attributes(self._search_regex(
|
||||||
r'''(?s)(<link\b[^>]+\bitemprop\s*=\s*("|')%s\2[^>]*>)'''
|
r'''(?s)(<link\b[^>]+\bitemprop\s*=\s*("|')%s\2[^>]*>)'''
|
||||||
% re.escape(var_name),
|
% re.escape(var_name),
|
||||||
get_element_by_attribute('itemprop', 'author', webpage) or '',
|
get_element_by_attribute('itemprop', 'author', webpage or '') or '',
|
||||||
'author link', default='')),
|
'author link', default='')),
|
||||||
paths[var_name][0])
|
paths[var_name][0])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue