mirror of
https://github.com/Nezumi-2711/auto-subtitle.git
synced 2026-09-22 13:38:41 +00:00
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:
committed by
Miguel Piedrafita
parent
9f692d4d60
commit
cfafce9ccf
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user