You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
totalDuration=int(value[SubsDictKeys.end_ms]) /1000# Just ends up staying as last subtitle timestamp
611
-
charRateGoal=totalCharacters/totalDuration
612
-
charRateGoal=round(charRateGoal, 2)
612
+
613
+
# If the duration is zero there's a problem. Print a warning and try to continue
614
+
iftotalDuration==0:
615
+
print("ERROR: Total duration of subtitles is zero. Something may be wrong with your subtitles file or it's empty. The script will try to continue but don't expect good results.")
0 commit comments