OrbiSubs SRT: treat a cue from the queue and its .vtt copy as the same across the rounding edge
The 608 was loading ~1 in 10 cues twice and running late behind the repeats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+5
-1
@@ -235,7 +235,11 @@ class Enc608:
|
||||
if d:
|
||||
cue = (cue[0] + d, cue[1] + d, cue[2])
|
||||
k = (round(cue[0], 2), cue[2])
|
||||
if k in self.vistos:
|
||||
# El mismo cue llega por la cola (inicio en float) y por el .vtt (en milisegundos):
|
||||
# 37640.9846 da 37640.98 y 37640.985 da 37640.99. Sin mirar los vecinos entraba dos
|
||||
# veces, y en el 608 el repetido ocupaba ~0,6 s de carga y atrasaba al siguiente:
|
||||
# ~10 % de cues tarde en ecuadortv (2026-11-23), contra ~1 % sin repetidos.
|
||||
if any((round(cue[0] + d, 2), cue[2]) in self.vistos for d in (0.0, -0.01, 0.01)):
|
||||
return
|
||||
self.vistos.add(k)
|
||||
if cue[1] <= t_actual + 0.5 or (self.descartar_tarde and cue[0] < t_actual):
|
||||
|
||||
Reference in New Issue
Block a user