summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-06-27 12:00:07 -0500
committerOmar Roth <omarroth@hotmail.com>2018-06-27 12:00:07 -0500
commitb7f673b1e19f869cfb90d1d92f5820b5383dcade (patch)
tree5d2528c37dc63dc25fc4f090824de3150551fb76 /src
parentaa20f0424dbaca24e547b0b7f79ee9b5b0d2d814 (diff)
downloadinvidious-b7f673b1e19f869cfb90d1d92f5820b5383dcade.tar.gz
invidious-b7f673b1e19f869cfb90d1d92f5820b5383dcade.tar.bz2
invidious-b7f673b1e19f869cfb90d1d92f5820b5383dcade.zip
Add alt links for all youtube endpoints
Diffstat (limited to 'src')
-rw-r--r--src/helpers.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index 9c5317b0..09b92ed5 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -484,7 +484,7 @@ def add_alt_links(html)
anchor = anchor.xpath_node("//a").not_nil!
url = URI.parse(HTML.unescape(anchor["href"]))
- if ["www.youtube.com", "m.youtube.com"].includes?(url.host) && url.path == "/watch" || url.path == "/redirect"
+ if ["www.youtube.com", "m.youtube.com"].includes?(url.host)
alt_link = <<-END_HTML
<a href="#{url.full_path}">
<i class="fa fa-link" aria-hidden="true"></i>