mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
This should work
This commit is contained in:
parent
d098e5ae9b
commit
03f9962a47
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user