Make a function that builds the download widget's HTML

This commit is contained in:
Samantaz Fox
2022-02-22 17:42:41 +01:00
parent 505a81d087
commit fe057c7873
4 changed files with 119 additions and 35 deletions

View File

@@ -189,6 +189,14 @@ module Invidious::Routes::Watch
return env.redirect url
end
# Structure used for the download widget
video_assets = Invidious::Frontend::WatchPage::VideoAssets.new(
full_videos: fmt_stream,
video_streams: video_streams,
audio_streams: audio_streams,
captions: video.captions
)
templated "watch"
end