Fix video duration parser

This commit is contained in:
Zed 2022-01-02 10:58:02 +01:00
parent 9dd7419ecf
commit a9034928eb

View file

@ -128,7 +128,7 @@ proc parseVideo(js: JsonNode): Video =
views: js{"ext", "mediaStats", "r", "ok", "viewCount"}.getStr,
available: js{"ext_media_availability", "status"}.getStr == "available",
title: js{"ext_alt_text"}.getStr,
durationMs: js{"duration_millis"}.getInt
durationMs: js{"video_info", "duration_millis"}.getInt
# playbackType: mp4
)