projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a363fb5
)
[youtube] Fix uploader extraction in flat playlist mode (#28045)
author
PrinceOfPuppers
<joshuamcpherson5@gmail.com>
Tue, 2 Feb 2021 06:46:39 +0000
(
01:46
-0500)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 16 Feb 2021 21:21:33 +0000
(
04:21
+0700)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 7db4503e0cffd6a493798dad1afaa92ea3bc6c98..e0b15f8594832ca1c6c846a18dc331776a7f40c1 100644
(file)
--- 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(),