mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:35:38 -04:00
Fix typo in short_description
This commit is contained in:
parent
d1635cf24e
commit
eecf76c1fb
@ -806,10 +806,10 @@ struct Video
|
||||
|
||||
def short_description
|
||||
short_description = self.description_html.gsub(/(<br>)|(<br\/>|"|\n)/, {
|
||||
"<br>" => " ",
|
||||
"<br/>" => " ",
|
||||
"\"" => """,
|
||||
"\n" => " ",
|
||||
"<br>": " ",
|
||||
"<br/>": " ",
|
||||
"\"": """,
|
||||
"\n": " ",
|
||||
})
|
||||
short_description = XML.parse_html(short_description).content[0..200].strip(" ")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user