Cache video token

This commit is contained in:
Zed 2019-06-24 05:29:47 +02:00
commit 1213220ef0
2 changed files with 58 additions and 52 deletions

View file

@ -112,5 +112,5 @@ proc getTweetMedia*(tweet: Tweet; node: XmlNode) =
if "gif" in player.getAttr("class"):
tweet.gif = some(getGif(player.querySelector(".PlayableMedia-player")))
else:
elif "video" in player.getAttr("class"):
tweet.video = some(Video())