summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr4
-rw-r--r--src/invidious/helpers/helpers.cr2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 983e6196..12145d8b 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -81,9 +81,9 @@ LOCALES = {
"en-US" => load_locale("en-US"),
"eo" => load_locale("eo"),
"es" => load_locale("es"),
- "eu" => load_locale("eu"),
+ "fa" => load_locale("fa"),
"fr" => load_locale("fr"),
- "hu" => load_locale("hu-HU"),
+ "hr" => load_locale("hr"),
"is" => load_locale("is"),
"it" => load_locale("it"),
"ja" => load_locale("ja"),
diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr
index bcd78699..00087143 100644
--- a/src/invidious/helpers/helpers.cr
+++ b/src/invidious/helpers/helpers.cr
@@ -282,7 +282,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