From 24fc14ac7a9cfaf352afd9cc6ba4a2856af78a9a Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 7 Mar 2018 16:48:26 -0600 Subject: [PATCH] Add player title and thumbnail --- src/invidious.cr | 2 ++ src/views/player/audio.ecr | 8 +++----- src/views/player/video.ecr | 4 ++-- src/views/watch.ecr | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 4b3cdd64..0dd46f55 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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 diff --git a/src/views/player/audio.ecr b/src/views/player/audio.ecr index 0bed59ae..1122d8d0 100644 --- a/src/views/player/audio.ecr +++ b/src/views/player/audio.ecr @@ -1,9 +1,7 @@ -