mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Update metadata
This commit is contained in:
parent
baa8a66827
commit
69e70124b4
3 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue