mirror of
https://github.com/iv-org/invidious.git
synced 2026-03-31 15:18:30 -05:00
crystal tool format
This commit is contained in:
parent
5df96989a3
commit
f17c896216
@ -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
|
||||
|
||||
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user