aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-24 01:40:05 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-24 03:24:07 +0530
commit2edb38e8caa8cadd3a2effd75d8bf47e31f94f9c (patch)
tree966503dcbcf4592b9235efe722046420f57b1869 /yt_dlp/extractor/common.py
parentaf6793f804140ddedb62227155aa457f16d1cd93 (diff)
downloadhypervideo-pre-2edb38e8caa8cadd3a2effd75d8bf47e31f94f9c.tar.lz
hypervideo-pre-2edb38e8caa8cadd3a2effd75d8bf47e31f94f9c.tar.xz
hypervideo-pre-2edb38e8caa8cadd3a2effd75d8bf47e31f94f9c.zip
[extractor] Extract video inside `Article` json_ld
Closes #2448
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 77e358bbe..bd9362827 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -1528,6 +1528,8 @@ class InfoExtractor(object):
'title': unescapeHTML(e.get('headline')),
'description': unescapeHTML(e.get('articleBody') or e.get('description')),
})
+ if traverse_obj(e, ('video', 0, '@type')) == 'VideoObject':
+ extract_video_object(e['video'][0])
elif item_type == 'VideoObject':
extract_video_object(e)
if expected_type is None: