crystal tool format

This commit is contained in:
Fijxu 2026-02-19 21:43:36 -03:00
parent 5df96989a3
commit f17c896216
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ module Invidious::Routes::VideoPlayback
# Remove the Range header added previously.
headers.delete("Range") if range_header.nil?
playback_statistics = Helpers.get_playback_statistic()
playback_statistics = Helpers.get_playback_statistic
playback_statistics["totalRequests"] += 1
if response.status_code >= 400

View File

@ -84,7 +84,7 @@ def extract_video_info(video_id : String)
# Although technically not a call to /videoplayback the fact that YouTube is returning the
# wrong video means that we should count it as a failure.
Helpers.get_playback_statistic()["totalRequests"] += 1
Helpers.get_playback_statistic["totalRequests"] += 1
return {
"version" => JSON::Any.new(Video::SCHEMA_VERSION.to_i64),