projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
718393c
)
[youtube] Improve description extraction (closes #25937) (#25980)
author
MRWITEK
<mrvvitek@gmail.com>
Tue, 14 Jul 2020 11:01:15 +0000
(14:01 +0300)
committer
GitHub
<noreply@github.com>
Tue, 14 Jul 2020 11:01:15 +0000
(12:01 +0100)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index ef08bf8cbafc7a6e1da08d21f0da0f5f2538aeb6..c27f2cd9523ebe7a7bb7bf2f4a38bd22b779051f 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-1930,7
+1930,7
@@
class YoutubeIE(YoutubeBaseInfoExtractor):
''', replace_url, video_description)
video_description = clean_html(video_description)
else:
- video_description =
self._html_search_meta('description', video_webpage) or video_details.get('shortDescription'
)
+ video_description =
video_details.get('shortDescription') or self._html_search_meta('description', video_webpage
)
if not smuggled_data.get('force_singlefeed', False):
if not self._downloader.params.get('noplaylist'):