From a2fd63ce22280cef3856d39d795ec91303152ff6 Mon Sep 17 00:00:00 2001 From: Zenon Mousmoulas Date: Fri, 12 Nov 2021 08:53:59 +0200 Subject: [PATCH] JSON-LD: Tweak (News)Article description extraction Let JSON-LD extract description from articleBody and fall back to description field when processing (News)Article typed nodes --- youtube_dl/extractor/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index d947b9253..0b62e09a1 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1338,7 +1338,7 @@ class InfoExtractor(object): info.update({ 'timestamp': parse_iso8601(e.get('datePublished')), 'title': unescapeHTML(e.get('headline')), - 'description': unescapeHTML(e.get('articleBody')), + 'description': unescapeHTML(e.get('articleBody') or e.get('description')), }) elif item_type == 'VideoObject': extract_video_object(e)