summaryrefslogtreecommitdiff
path: root/lib/lsg_irc/link_plugin/youtube.ex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/lsg_irc/link_plugin/youtube.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lsg_irc/link_plugin/youtube.ex b/lib/lsg_irc/link_plugin/youtube.ex
index fd0f1b4..536cab6 100644
--- a/lib/lsg_irc/link_plugin/youtube.ex
+++ b/lib/lsg_irc/link_plugin/youtube.ex
@@ -54,8 +54,8 @@ defmodule LSG.IRC.LinkPlugin.YouTube do
|> Timex.format("{relative}", :relative)
|> elem(1)
- line = if Keyword.get(opts, :invidious, "yewtu.be") do
- ["-> https://#{}host}/watch?v=#{video_id}"]
+ line = if host = Keyword.get(opts, :invidious, "yewtu.be") do
+ ["-> https://#{host}/watch?v=#{video_id}"]
else
[]
end