summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Zhao <azhao12345@users.noreply.github.com>2021-01-27 12:36:24 -0500
committerAndrew Zhao <azhao12345@users.noreply.github.com>2021-01-28 00:51:14 -0500
commitd0dbbd1cb1b34761046f275c4e76f8c4e6a982cb (patch)
tree63f981a560a5a68b9f329327c4a49fd6c990e84e
parente35345f1358d98fa36b8d3b8b5b420260a8aef10 (diff)
downloadinvidious-d0dbbd1cb1b34761046f275c4e76f8c4e6a982cb.tar.gz
invidious-d0dbbd1cb1b34761046f275c4e76f8c4e6a982cb.tar.bz2
invidious-d0dbbd1cb1b34761046f275c4e76f8c4e6a982cb.zip
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