logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git
commit: 8980f53b4227bc213048fce52c634830dd25e4bb
parent a363fb5d28da7c1b651e6de98b9e799544a4df73
Author: PrinceOfPuppers <joshuamcpherson5@gmail.com>
Date:   Tue,  2 Feb 2021 01:46:39 -0500

[youtube] Fix uploader extraction in flat playlist mode (#28045)

Diffstat:

Myoutube_dl/extractor/youtube.py4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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(),