From b7f673b1e19f869cfb90d1d92f5820b5383dcade Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 27 Jun 2018 12:00:07 -0500 Subject: [PATCH] Add alt links for all youtube endpoints --- src/helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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