From b22393092bd1204122ac3edff7d9f0af24203934 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 3 Jul 2019 13:10:18 -0500 Subject: [PATCH] Fix protocol for video author thumbnails --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index ff708df7..b5803e8a 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -1218,7 +1218,7 @@ def fetch_video(id, region) license = html.xpath_node(%q(//h4[contains(text(),"License")]/parent::*/ul/li)).try &.content || "" sub_count_text = html.xpath_node(%q(//span[contains(@class, "yt-subscriber-count")])).try &.["title"]? || "0" - author_thumbnail = html.xpath_node(%(//span[@class="yt-thumb-clip"]/img)).try &.["data-thumb"]? || "" + author_thumbnail = html.xpath_node(%(//span[@class="yt-thumb-clip"]/img)).try &.["data-thumb"]?.try &.gsub(/^\/\//, "https://") || "" video = Video.new(id, info, Time.utc, title, views, likes, dislikes, wilson_score, published, description_html, nil, author, ucid, allowed_regions, is_family_friendly, genre, genre_url, license, sub_count_text, author_thumbnail)