mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Ignore in progress segment when adding stream recorder lookback (#73604)
This commit is contained in:
parent
d43178db06
commit
f276523ef3
@ -510,7 +510,7 @@ class Stream:
|
||||
num_segments = min(int(lookback // hls.target_duration), MAX_SEGMENTS)
|
||||
# Wait for latest segment, then add the lookback
|
||||
await hls.recv()
|
||||
recorder.prepend(list(hls.get_segments())[-num_segments:])
|
||||
recorder.prepend(list(hls.get_segments())[-num_segments - 1 : -1])
|
||||
|
||||
async def async_get_image(
|
||||
self,
|
||||
|
Loading…
x
Reference in New Issue
Block a user