1
0
mirror of https://github.com/algora-io/tv.git synced 2025-04-07 06:49:52 +02:00

update admin helpers

This commit is contained in:
zafer 2024-06-23 15:20:30 +03:00
parent 4988ba7a8d
commit 7ddca7b819

View File

@ -10,6 +10,8 @@ defmodule Algora.Admin do
video: "g3cFdmlkZW8.m3u8" video: "g3cFdmlkZW8.m3u8"
} }
def whoami(), do: {System.get_env("FLY_REGION"), Node.self()}
defp get(url) do defp get(url) do
Finch.build(:get, url) |> Finch.request(Algora.Finch) Finch.build(:get, url) |> Finch.request(Algora.Finch)
end end
@ -142,8 +144,7 @@ defmodule Algora.Admin do
"/data" "/data"
_ -> _ ->
"/home/zaf/Downloads" System.tmp_dir!()
# _ -> System.tmp_dir!()
end end
end end