summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com>2021-01-29 22:54:27 +0000
committerGitHub <noreply@github.com>2021-01-29 22:54:27 +0000
commit69406b00d151b3df6b1314e475883732f62098ad (patch)
treee0edc4bdc1ce8ca824fe6360308bfc8a7298e1a8
parenta1f3ae730aac2a5e00d7d6f5de3b87248dddb576 (diff)
parentd0dbbd1cb1b34761046f275c4e76f8c4e6a982cb (diff)
downloadinvidious-69406b00d151b3df6b1314e475883732f62098ad.tar.gz
invidious-69406b00d151b3df6b1314e475883732f62098ad.tar.bz2
invidious-69406b00d151b3df6b1314e475883732f62098ad.zip
Merge pull request #1714 from tenpura-shrimp/searchchannelthumbnailhttps
Remove HTTPS from channel thumbnail in search
-rw-r--r--src/invidious/helpers/helpers.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr
index 1f56ec92..6bbb18cb 100644
--- a/src/invidious/helpers/helpers.cr
+++ b/src/invidious/helpers/helpers.cr
@@ -225,7 +225,7 @@ def extract_item(item : JSON::Any, author_fallback : String? = nil, author_id_fa
author = i["title"]["simpleText"]?.try &.as_s || author_fallback || ""
author_id = i["channelId"]?.try &.as_s || author_id_fallback || ""
- author_thumbnail = i["thumbnail"]["thumbnails"]?.try &.as_a[0]?.try { |u| "https:#{u["url"]}" } || ""
+ author_thumbnail = i["thumbnail"]["thumbnails"]?.try &.as_a[0]?.try &.["url"]?.try &.as_s || ""
subscriber_count = i["subscriberCountText"]?.try &.["simpleText"]?.try &.as_s.try { |s| short_text_to_number(s.split(" ")[0]) } || 0
auto_generated = false