Skip to content

Invidious is an alternative front-end to YouTube

Fix typo in short_description

Omar Rotheecf76c1fba9
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 7964aa40..f1b8e3f8 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -806,10 +806,10 @@ struct Video
def short_description
short_description = self.description_html.gsub(/(<br>)|(<br\/>|"|\n)/, {
- "<br>" => " ",
- "<br/>" => " ",
- "\"" => "&quot;",
- "\n" => " ",
+ "<br>": " ",
+ "<br/>": " ",
+ "\"": "&quot;",
+ "\n": " ",
})
short_description = XML.parse_html(short_description).content[0..200].strip(" ")