mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 23:46:08 +00:00
Update subgen.py
This commit is contained in:
1 parent
18235a2df4
commit
b15d9f4303
1 file changed
+2
-5
+2
-5
@@ -25,11 +25,8 @@ import whisper
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
def convert_to_bool(in_bool):
|
def convert_to_bool(in_bool):
|
||||||
if isinstance(in_bool, bool):
|
# Convert the input to string and lower case, then check against true values
|
||||||
return in_bool
|
return str(in_bool).lower() in ('true', 'on', '1')
|
||||||
else:
|
|
||||||
value = str(in_bool).lower()
|
|
||||||
return value not in ('false', 'off', '0', 0)
|
|
||||||
|
|
||||||
# Replace your getenv calls with appropriate default values here
|
# Replace your getenv calls with appropriate default values here
|
||||||
plextoken = os.getenv('PLEXTOKEN', 'token here')
|
plextoken = os.getenv('PLEXTOKEN', 'token here')
|
||||||
|
|||||||
Reference in new issue
Block a user