aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorPrinceOfPuppers <joshuamcpherson5@gmail.com>2021-02-02 01:46:39 -0500
committerSergey M․ <dstftw@gmail.com>2021-02-17 04:21:33 +0700
commit8980f53b4227bc213048fce52c634830dd25e4bb (patch)
tree99a032b6516c4f6038ecdfc3685522fa0fe5a5a6 /youtube_dl/extractor
parenta363fb5d28da7c1b651e6de98b9e799544a4df73 (diff)
[youtube] Fix uploader extraction in flat playlist mode (#28045)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/youtube.py4
1 files changed, 3 insertions, 1 deletions
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(),