[youtube] Fix uploader extraction in flat playlist mode (#28045)
authorPrinceOfPuppers <joshuamcpherson5@gmail.com>
Tue, 2 Feb 2021 06:46:39 +0000 (01:46 -0500)
committerSergey M․ <dstftw@gmail.com>
Tue, 16 Feb 2021 21:21:33 +0000 (04:21 +0700)
youtube_dl/extractor/youtube.py

index 7db4503e0cffd6a493798dad1afaa92ea3bc6c98..e0b15f8594832ca1c6c846a18dc331776a7f40c1 100644 (file)
@@ -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(),