summaryrefslogtreecommitdiff
path: root/lib/lsg_irc/link_plugin
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-02 00:22:48 +0200
committerhref <href@random.sh>2021-09-02 00:22:48 +0200
commit6ac3cba701fa975dd2e704b2d7800bf670f7fa53 (patch)
tree00033a60196aa87a884fe03d6655643f9480ddd5 /lib/lsg_irc/link_plugin
parentoutline: manual (diff)
link/youtube: use yewtu.be instead of invidio.us
Diffstat (limited to 'lib/lsg_irc/link_plugin')
-rw-r--r--lib/lsg_irc/link_plugin/youtube.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lsg_irc/link_plugin/youtube.ex b/lib/lsg_irc/link_plugin/youtube.ex
index b68a86f..fd0f1b4 100644
--- a/lib/lsg_irc/link_plugin/youtube.ex
+++ b/lib/lsg_irc/link_plugin/youtube.ex
@@ -13,7 +13,7 @@ defmodule LSG.IRC.LinkPlugin.YouTube do
options:
- * `invidious`: Add a link to invidio.us. Default: true.
+ * `invidious`: Add a link to invidious. Default: "yewtu.be".
"""
@impl true
@@ -54,8 +54,8 @@ defmodule LSG.IRC.LinkPlugin.YouTube do
|> Timex.format("{relative}", :relative)
|> elem(1)
- line = if Keyword.get(opts, :invidious, true) do
- ["-> https://invidio.us/watch?v=#{video_id}"]
+ line = if Keyword.get(opts, :invidious, "yewtu.be") do
+ ["-> https://#{}host}/watch?v=#{video_id}"]
else
[]
end