Cache video token

This commit is contained in:
Zed
2019-06-24 05:29:47 +02:00
parent 861ac7a593
commit 1213220ef0
2 changed files with 70 additions and 64 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())