diff options
author | dirkf <fieldhouse@gmx.net> | 2023-06-22 23:10:04 +0100 |
---|---|---|
committer | dirkf <fieldhouse@gmx.net> | 2023-06-22 23:14:21 +0100 |
commit | fa7f0effbe4e14fcf70e1dc4496371c9862b64b9 (patch) | |
tree | 46ee138581b4bd2845d0270ac3a654e19e15d8cf | |
parent | ebdc82c58684b4e202fabc046f9a40fc73cccde5 (diff) |
[YouTube] Avoid crash in author extraction
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 24e2efbd9..9c419c002 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -448,7 +448,7 @@ class YoutubeBaseInfoExtractor(InfoExtractor): extract_attributes(self._search_regex( r'''(?s)(<link\b[^>]+\bitemprop\s*=\s*("|')%s\2[^>]*>)''' % re.escape(var_name), - get_element_by_attribute('itemprop', 'author', webpage) or '', + get_element_by_attribute('itemprop', 'author', webpage or '') or '', 'author link', default='')), paths[var_name][0]) |