From: PrinceOfPuppers Date: Tue, 2 Feb 2021 06:46:39 +0000 (-0500) Subject: [youtube] Fix uploader extraction in flat playlist mode (#28045) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=8980f53b4227bc213048fce52c634830dd25e4bb;p=youtube-dl [youtube] Fix uploader extraction in flat playlist mode (#28045) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 7db4503e0..e0b15f859 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -308,7 +308,9 @@ class YoutubeBaseInfoExtractor(InfoExtractor): r'^([\d,]+)', re.sub(r'\s', '', view_count_text), 'view count', default=None)) uploader = try_get( - renderer, lambda x: x['ownerText']['runs'][0]['text'], compat_str) + renderer, + (lambda x: x['ownerText']['runs'][0]['text'], + lambda x: x['shortBylineText']['runs'][0]['text']), compat_str) return { '_type': 'url_transparent', 'ie_key': YoutubeIE.ie_key(),