Invidious is an alternative front-end to YouTube
Remove extra dot between [] from ambea copy-pasting.
syeopite575c66efd342
diff --git a/src/invidious/channels/about.cr b/src/invidious/channels/about.crindex a72acc72..c87c53e0 100644--- a/src/invidious/channels/about.cr+++ b/src/invidious/channels/about.cr@@ -149,7 +149,7 @@ def get_about_info(ucid, locale)endendend- tabs = tabs_json.reject { |node| node["tabRenderer"]?.nil? }.map(&.["tabRenderer"].["title"].as_s.downcase)+ tabs = tabs_json.reject { |node| node["tabRenderer"]?.nil? }.map(&.["tabRenderer"]["title"].as_s.downcase)endsub_count = initdata["header"]["c4TabbedHeaderRenderer"]?.try &.["subscriberCountText"]?.try &.["simpleText"]?.try &.as_s?diff --git a/src/invidious/helpers/static_file_handler.cr b/src/invidious/helpers/static_file_handler.crindex 11151874..630c2fd2 100644--- a/src/invidious/helpers/static_file_handler.cr+++ b/src/invidious/helpers/static_file_handler.cr@@ -173,7 +173,7 @@ module Kemalreturnend- if @cached_files.sum(&.[1].[:data].bytesize) + (size = File.size(file_path)) < CACHE_LIMIT+ if @cached_files.sum(&.[1][:data].bytesize) + (size = File.size(file_path)) < CACHE_LIMITdata = Bytes.new(size)File.open(file_path) do |file|file.read(data)