Update subgen.py

This commit is contained in:
McCloudS
2023-01-28 12:15:16 -07:00
committed by GitHub
parent 351e749209
commit b5ccb1b5fd

View File

@@ -43,7 +43,6 @@ def process_post_request(request, *args, **kwargs):
if ((procaddedmedia and event == "added") or (procmediaonplay and event == "played")) and (len(glob.glob("{}/{}*subgen*".format(filepath, filenamenoextension))) == 0): #glob nonsense checks if there exists a subgen file already and won't make a new one
if os.getenv('WHISPER_SPEEDUP') == "True" :
print("This is a speedup run!")
print(os.getenv('WHISPER_SPEEDUP'))
finalsubname = "{0}/{1}.subgen.{2}.speedup.{3}".format(
filepath, filenamenoextension, whisper_model, namesublang)
else: