1
0
mirror of https://github.com/algora-io/tv.git synced 2025-10-30 23:07:56 +02:00
This commit is contained in:
zafer
2024-09-01 01:58:28 +03:00
parent 233a53dea6
commit a3cf773b8c

View File

@@ -256,11 +256,11 @@ defmodule Algora.Library do
def terminate_interrupted_streams() do
from(v in Video,
where: v.duration == 0 and v.is_live == false and v.format == :hls and v.corrupted == false,
select: v.id
)
|> Repo.all
|> Enum.each(&terminate_stream/1)
where: v.duration == 0 and v.is_live == false and v.format == :hls and v.corrupted == false,
select: v.id
)
|> Repo.all()
|> Enum.each(&terminate_stream/1)
end
def toggle_streamer_live(%Video{} = video, is_live) do