Fix pro/amp video parsing
This commit is contained in:
parent
da0ad25c2c
commit
12695b393e
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ proc parseVideo*(node: JsonNode; tweetId: string): Video =
|
|||
of "vmap":
|
||||
result = Video(
|
||||
playbackType: vmap,
|
||||
durationMs: track["durationMs"].to(int),
|
||||
durationMs: track.getOrDefault("durationMs").getInt(0),
|
||||
url: track["vmapUrl"].to(string),
|
||||
available: true)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue