mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 19:46:28 +00:00
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":
|
of "vmap":
|
||||||
result = Video(
|
result = Video(
|
||||||
playbackType: vmap,
|
playbackType: vmap,
|
||||||
durationMs: track["durationMs"].to(int),
|
durationMs: track.getOrDefault("durationMs").getInt(0),
|
||||||
url: track["vmapUrl"].to(string),
|
url: track["vmapUrl"].to(string),
|
||||||
available: true)
|
available: true)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue