1
0
mirror of https://github.com/iv-org/invidious.git synced 2024-12-24 23:09:38 -05:00

Remove extra dot between [] from ambea copy-pasting.

This commit is contained in:
syeopite 2021-09-26 14:34:05 -07:00
parent 88ad7c8d8d
commit 575c66efd3
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82
2 changed files with 2 additions and 2 deletions
src/invidious

View File

@ -149,7 +149,7 @@ def get_about_info(ucid, locale)
end end
end end
end end
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)
end end
sub_count = initdata["header"]["c4TabbedHeaderRenderer"]?.try &.["subscriberCountText"]?.try &.["simpleText"]?.try &.as_s? sub_count = initdata["header"]["c4TabbedHeaderRenderer"]?.try &.["subscriberCountText"]?.try &.["simpleText"]?.try &.as_s?

View File

@ -173,7 +173,7 @@ module Kemal
return return
end end
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_LIMIT
data = Bytes.new(size) data = Bytes.new(size)
File.open(file_path) do |file| File.open(file_path) do |file|
file.read(data) file.read(data)