]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[youtube] Improve description extraction (closes #25937) (#25980)
authorMRWITEK <mrvvitek@gmail.com>
Tue, 14 Jul 2020 11:01:15 +0000 (14:01 +0300)
committerGitHub <noreply@github.com>
Tue, 14 Jul 2020 11:01:15 +0000 (12:01 +0100)
youtube_dl/extractor/youtube.py

index ef08bf8cbafc7a6e1da08d21f0da0f5f2538aeb6..c27f2cd9523ebe7a7bb7bf2f4a38bd22b779051f 100644 (file)
@@ -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'):