summaryrefslogtreecommitdiffstats
path: root/src/invidious.cr
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-09-03 22:15:47 -0500
committerOmar Roth <omarroth@hotmail.com>2018-09-03 22:15:47 -0500
commit0d8f036bf18b878376a618458ccfc1fb2c8a2e16 (patch)
tree517ad5668e13c182e9ed76ff07ae7e8c38aa475b /src/invidious.cr
parent81c520e0ddb30100ee0c67ec3a25238852f6dcba (diff)
downloadinvidious-0d8f036bf18b878376a618458ccfc1fb2c8a2e16.tar.gz
invidious-0d8f036bf18b878376a618458ccfc1fb2c8a2e16.tar.bz2
invidious-0d8f036bf18b878376a618458ccfc1fb2c8a2e16.zip
Replace YouTube links
Diffstat (limited to 'src/invidious.cr')
-rw-r--r--src/invidious.cr6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index f3e2ad8e..7340f4dc 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -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 = ""