summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadoslavL <rlelchev@abv.bg>2023-11-14 10:00:18 +0200
committerRadoslavL <rlelchev@abv.bg>2023-11-14 10:00:18 +0200
commit03f9962a479884d8c5cd86c56caef728a7744c0e (patch)
tree89c2aade56987245ffbfc8f2a5aa656517a97960
parentd098e5ae9ba3058846c9fd0040c18f5a3a146bd8 (diff)
downloadinvidious-03f9962a479884d8c5cd86c56caef728a7744c0e.tar.gz
invidious-03f9962a479884d8c5cd86c56caef728a7744c0e.tar.bz2
invidious-03f9962a479884d8c5cd86c56caef728a7744c0e.zip
This should work
-rw-r--r--src/invidious/videos/parser.cr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr
index 00c9c8a3..279daf37 100644
--- a/src/invidious/videos/parser.cr
+++ b/src/invidious/videos/parser.cr
@@ -38,7 +38,7 @@ def parse_related_video(related : JSON::Any, published : String? = nil) : Hash(S
publishedText = related["publishedTimeText"]?
if !publishedText.nil?
- publishedSimpleText = publishedText["simpleText"].to_s
+ publishedSimpleText = publishedText["simpleText"].to_s
else
publishedSimpleText = nil
end
@@ -55,7 +55,7 @@ def parse_related_video(related : JSON::Any, published : String? = nil) : Hash(S
"short_view_count" => JSON::Any.new(short_view_count || "0"),
"author_verified" => JSON::Any.new(author_verified),
"published" => JSON::Any.new(published || ""),
- "publishedText" => JSON::Any.new(publishedSimpleText || ""),
+ "publishedText" => JSON::Any.new(publishedSimpleText || ""),
}
end