diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-07-03 13:10:18 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-07-03 13:10:18 -0500 |
| commit | b22393092bd1204122ac3edff7d9f0af24203934 (patch) | |
| tree | e83f3734b3465e2b9c4bc1995928e0f1dfe3038b | |
| parent | 1485ee80279100d02a3e47c3aac8171e291d503a (diff) | |
| download | invidious-b22393092bd1204122ac3edff7d9f0af24203934.tar.gz invidious-b22393092bd1204122ac3edff7d9f0af24203934.tar.bz2 invidious-b22393092bd1204122ac3edff7d9f0af24203934.zip | |
Fix protocol for video author thumbnails
| -rw-r--r-- | src/invidious/videos.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
