mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-27 15:36:08 +00:00
Update subgen.py
This commit is contained in:
1 parent
351e749209
commit
b5ccb1b5fd
1 file changed
-1
@@ -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 ((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" :
|
if os.getenv('WHISPER_SPEEDUP') == "True" :
|
||||||
print("This is a speedup run!")
|
print("This is a speedup run!")
|
||||||
print(os.getenv('WHISPER_SPEEDUP'))
|
|
||||||
finalsubname = "{0}/{1}.subgen.{2}.speedup.{3}".format(
|
finalsubname = "{0}/{1}.subgen.{2}.speedup.{3}".format(
|
||||||
filepath, filenamenoextension, whisper_model, namesublang)
|
filepath, filenamenoextension, whisper_model, namesublang)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user