From 21aefc4ca8f39c74aff0ce5eebfd2b7fabad2ee0 Mon Sep 17 00:00:00 2001 From: MRWITEK Date: Sun, 12 Jul 2020 15:25:18 +0300 Subject: [PATCH] [youtube] Improve description extraction (closes #25937) --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index ef08bf8cbaf..c27f2cd9523 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1930,7 +1930,7 @@ def replace_url(m): ''', 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'):