Include video ID in parser failure message

This commit is contained in:
Zed 2019-12-08 19:48:11 +01:00
parent 336cd6125c
commit 2e398c2c87

View file

@ -219,7 +219,7 @@ proc parseVideo*(node: JsonNode; tweetId: int): Video =
url: track["vmapUrl"].to(string),
available: true)
else:
echo "Can't parse video of type ", cType
echo "Can't parse video of type ", cType, " ", tweetId
result.videoId = $tweetId
result.thumb = node["posterImage"].to(string)