[extractor/JdItemVideo] Add Extractor. fix some problems

This commit is contained in:
zhangzhanming 2023-06-28 21:15:40 +08:00
parent 48e821ab16
commit 75432034fe

View File

@ -76,7 +76,7 @@ def _real_extract(self, url):
'ext': ext,
'title': traverse_obj(detailRespJson, ('extInfo', 'videoName'), default="unknown_video_title"),
'description': description,
'size': traverse_obj(detailRespJson, ("extInfo","size")),
'size': traverse_obj(detailRespJson, ("extInfo", "size")),
'width': traverse_obj(detailRespJson, ("extInfo", "vwidth")),
'height': traverse_obj(detailRespJson, ("extInfo", "vheight")),
'duration': detailRespJson.get("duration"),