mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Replace YouTube links
This commit is contained in:
parent
81c520e0dd
commit
0d8f036bf1
3 changed files with 14 additions and 41 deletions
|
@ -249,7 +249,7 @@ get "/watch" do |env|
|
|||
aspect_ratio = "16:9"
|
||||
|
||||
video.description = fill_links(video.description, "https", "www.youtube.com")
|
||||
video.description = add_alt_links(video.description)
|
||||
video.description = replace_links(video.description)
|
||||
description = video.short_description
|
||||
|
||||
host_url = make_host_url(Kemal.config.ssl || CONFIG.https_only, env.request.headers["Host"]?)
|
||||
|
@ -349,7 +349,7 @@ get "/embed/:id" do |env|
|
|||
aspect_ratio = nil
|
||||
|
||||
video.description = fill_links(video.description, "https", "www.youtube.com")
|
||||
video.description = add_alt_links(video.description)
|
||||
video.description = replace_links(video.description)
|
||||
description = video.short_description
|
||||
|
||||
host_url = make_host_url(Kemal.config.ssl || CONFIG.https_only, env.request.headers["Host"]?)
|
||||
|
@ -1936,7 +1936,7 @@ get "/api/v1/comments/:id" do |env|
|
|||
content_html = template_reddit_comments(comments)
|
||||
|
||||
content_html = fill_links(content_html, "https", "www.reddit.com")
|
||||
content_html = add_alt_links(content_html)
|
||||
content_html = replace_links(content_html)
|
||||
rescue ex
|
||||
reddit_thread = nil
|
||||
content_html = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue