Skip to content

Commit d9e3a9a

Browse files
committed
fix(streamer): don't send ready request for files that aren't hls chunks
this would cause a few "segment not found" errors whenever a stream started as the script would try to indicate that the hls playlist files were "ready" despite the nextjs app not caring about them
1 parent 0eb96ef commit d9e3a9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

liq/streamer.liq

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ def segment_name(metadata) =
7171
end
7272

7373
def segment_changed(~state, filename) =
74-
if state == "created" then
75-
# TODO: eliminate this double-request because they can sometimes arrive out-of-order
76-
# (esp if the streamer script restarts)
74+
if state == "created" and (not string.contains(filename, suffix=".m3u8")) then
7775
ignore(http.post(
7876
data = json.stringify({
7977
filename = path.basename(filename),

0 commit comments

Comments
 (0)