From 1a458ee94c77479660853909ebc783af4d992756 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 7 Apr 2018 10:13:52 -0500 Subject: [PATCH] Substitute redirect links in video description --- src/helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.cr b/src/helpers.cr index 3208ced8..4fe8ae4f 100644 --- a/src/helpers.cr +++ b/src/helpers.cr @@ -448,7 +448,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" + if ["www.youtube.com", "m.youtube.com"].includes?(url.host) && url.path == "/watch" || url.path == "/redirect" alt_link = <<-END_HTML