Skip to content

Invidious is an alternative front-end to YouTube

Fix cast from nil in short_description

Omar Roth1f435522b4c4
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 277c81f4..9af45851 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -706,7 +706,7 @@ struct Video
end
def short_description
- info["shortDescription"]?.try &.as_s || ""
+ info["shortDescription"]?.try &.as_s? || ""
end
def hls_manifest_url : String?