Merge pull request #40 from lifefeel/main

Fix: Omitting the last chunk problem in comp_unaware mode
This commit is contained in:
Dominik Macháček 2023-12-07 13:31:47 +01:00 committed by GitHub
commit ff794b4d32

View file

@ -573,10 +573,15 @@ if __name__ == "__main__":
print(f"## last processed {end:.2f}s",file=logfile,flush=True)
beg = end
end += min_chunk
if end >= duration:
break
beg = end
if end + min_chunk > duration:
end = duration
else:
end += min_chunk
now = duration
else: # online = simultaneous mode