From a2ac148ce0e533627f073df0a325adf010e36430 Mon Sep 17 00:00:00 2001 From: hashangayasri Date: Sat, 26 Sep 2020 05:47:35 +0530 Subject: [PATCH] Update indexes after deleting lines The function clean_indexes should be called to trigger a re-indexing according to https://github.com/byroot/pysrt/issues/57 . --- subscleaner | 1 + 1 file changed, 1 insertion(+) diff --git a/subscleaner b/subscleaner index b092ced..860b38b 100755 --- a/subscleaner +++ b/subscleaner @@ -83,5 +83,6 @@ if __name__ == '__main__': del subs[i] modified = True if modified: + subs.clean_indexes() move(filename, filename+'.bak') subs.save(filename)