From 03f9962a479884d8c5cd86c56caef728a7744c0e Mon Sep 17 00:00:00 2001 From: RadoslavL Date: Tue, 14 Nov 2023 10:00:18 +0200 Subject: [PATCH] This should work --- src/invidious/videos/parser.cr | 4 ++-- 1 file 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