mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add TODO comments to other places
This commit is contained in:
parent
33780f1995
commit
0ec94405ce
1 changed files with 4 additions and 0 deletions
|
@ -95,6 +95,7 @@ struct SearchVideo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TODO: remove the locale and follow the crystal convention
|
||||||
def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
|
def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
|
||||||
JSON.build do |json|
|
JSON.build do |json|
|
||||||
to_json(locale, json)
|
to_json(locale, json)
|
||||||
|
@ -159,6 +160,7 @@ struct SearchPlaylist
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TODO: remove the locale and follow the crystal convention
|
||||||
def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
|
def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
|
||||||
JSON.build do |json|
|
JSON.build do |json|
|
||||||
to_json(locale, json)
|
to_json(locale, json)
|
||||||
|
@ -211,6 +213,7 @@ struct SearchChannel
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TODO: remove the locale and follow the crystal convention
|
||||||
def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
|
def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
|
||||||
JSON.build do |json|
|
JSON.build do |json|
|
||||||
to_json(locale, json)
|
to_json(locale, json)
|
||||||
|
@ -245,6 +248,7 @@ class Category
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TODO: remove the locale and follow the crystal convention
|
||||||
def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
|
def to_json(locale : Hash(String, JSON::Any) | Nil, _json : Nil)
|
||||||
JSON.build do |json|
|
JSON.build do |json|
|
||||||
to_json(locale, json)
|
to_json(locale, json)
|
||||||
|
|
Loading…
Reference in a new issue