diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-09-03 22:15:47 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-09-03 22:15:47 -0500 |
| commit | 0d8f036bf18b878376a618458ccfc1fb2c8a2e16 (patch) | |
| tree | 517ad5668e13c182e9ed76ff07ae7e8c38aa475b /src/invidious.cr | |
| parent | 81c520e0ddb30100ee0c67ec3a25238852f6dcba (diff) | |
| download | invidious-0d8f036bf18b878376a618458ccfc1fb2c8a2e16.tar.gz invidious-0d8f036bf18b878376a618458ccfc1fb2c8a2e16.tar.bz2 invidious-0d8f036bf18b878376a618458ccfc1fb2c8a2e16.zip | |
Replace YouTube links
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 6 |
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 = "" |
