1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-08 04:55:37 -05:00

Add experimental support for unified_card

Closes #345
This commit is contained in:
Zed
2022-01-13 00:36:30 +01:00
parent 8a6fbe81ab
commit 111927a21c
7 changed files with 185 additions and 17 deletions

View File

@@ -97,7 +97,7 @@ proc renderVideo*(video: Video; prefs: Prefs; path: string): VNode =
img(src=thumb)
renderVideoDisabled(video, path)
else:
let vid = video.variants.filterIt(it.videoType == video.playbackType)
let vid = video.variants.filterIt(it.contentType == video.playbackType)
let source = getVidUrl(vid[0].url)
case video.playbackType
of mp4: