diff options
Diffstat (limited to '')
-rw-r--r-- | lib/lsg/icecast.ex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/lsg/icecast.ex b/lib/lsg/icecast.ex index 07dd4fc..60fb45a 100644 --- a/lib/lsg/icecast.ex +++ b/lib/lsg/icecast.ex @@ -1,4 +1,4 @@ -defmodule LSG.Icecast do +defmodule Nola.Icecast do use GenServer require Logger @hackney_pool :default @@ -29,8 +29,8 @@ defmodule LSG.Icecast do stats = update_stats(body) if state != stats do Logger.info "Icecast Update: " <> inspect(stats) - LSG.IcecastAgent.update(stats) - Registry.dispatch(LSG.BroadcastRegistry, "icecast", fn ws -> + Nola.IcecastAgent.update(stats) + Registry.dispatch(Nola.BroadcastRegistry, "icecast", fn ws -> for {pid, _} <- ws, do: send(pid, {:icecast, stats}) end) stats @@ -83,7 +83,7 @@ defmodule LSG.Icecast do end defp request(uri, method, body \\ [], headers \\ []) do - headers = [{"user-agent", "LSG-API[115ans.net, sys.115ans.net] href@random.sh"}] ++ headers + headers = [{"user-agent", "Nola-API[115ans.net, sys.115ans.net] href@random.sh"}] ++ headers options = @httpoison_opts case :ok do #:fuse.ask(@fuse, :sync) do :ok -> run_request(method, uri, body, headers, options) |