Invidious is an alternative front-end to YouTube
serialized_yt_data: Remove default nil value in to_json
Samantaz Foxf65b628bf36d
diff --git a/src/invidious/helpers/serialized_yt_data.cr b/src/invidious/helpers/serialized_yt_data.crindex 0cac7c49..bc8fc946 100644--- a/src/invidious/helpers/serialized_yt_data.cr+++ b/src/invidious/helpers/serialized_yt_data.cr@@ -95,7 +95,7 @@ struct SearchVideoendend- def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil = nil)+ def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)JSON.build do |json|to_json(locale, json)end@@ -159,7 +159,7 @@ struct SearchPlaylistendend- def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil = nil)+ def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)JSON.build do |json|to_json(locale, json)end@@ -211,7 +211,7 @@ struct SearchChannelendend- def to_json(locale, _json : Nil = nil)+ def to_json(locale, _json : Nil)JSON.build do |json|to_json(locale, json)end@@ -245,7 +245,7 @@ class Categoryendend- def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil = nil)+ def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)JSON.build do |json|to_json(locale, json)end