Fix pro/amp video parsing
This commit is contained in:
parent
da0ad25c2c
commit
12695b393e
|
@ -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 New Issue