mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-04 14:41:59 +00:00
Update metadata
This commit is contained in:
@@ -399,6 +399,10 @@ get "/watch" do |env|
|
||||
video.description = fill_links(video.description, "https", "www.youtube.com")
|
||||
video.description = add_alt_links(video.description)
|
||||
|
||||
description = video.description.gsub("<br>", " ")
|
||||
description = description.gsub("<br/>", " ")
|
||||
description = XML.parse_html(description).content[0..200].gsub("\n", " ").strip(" ")
|
||||
|
||||
thumbnail = "https://i.ytimg.com/vi/#{id}/mqdefault.jpg"
|
||||
|
||||
templated "watch"
|
||||
|
||||
Reference in New Issue
Block a user