Add player title and thumbnail

This commit is contained in:
Omar Roth 2018-03-07 16:48:26 -06:00
parent 212ba05047
commit 24fc14ac7a
4 changed files with 8 additions and 8 deletions

View file

@ -229,6 +229,8 @@ get "/watch" do |env|
video.description = fill_links(video.description, "https", "www.youtube.com")
video.description = add_alt_links(video.description)
thumbnail = player_response["videoDetails"]["thumbnail"]["thumbnails"][-1]["url"]?
templated "watch"
end