add argument to enable output of .srt file

enable srt only output
case insensitive string to bool conversion for arg
This commit is contained in:
Kevin Le
2022-10-09 02:04:10 -05:00
committed by Miguel Piedrafita
parent 9f692d4d60
commit cfafce9ccf
2 changed files with 18 additions and 6 deletions
+3 -1
View File
@@ -3,7 +3,9 @@ from typing import Iterator, TextIO
def str2bool(string):
str2val = {"True": True, "False": False}
string = string.lower()
str2val = {"true": True, "false": False}
if string in str2val:
return str2val[string]
else: