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
e219d24f34
commit
dce3735816
1 file changed
+8
-7
+8
-7
@@ -639,13 +639,14 @@ def transcribe_existing(transcribe_folders, forceLanguage=None):
|
|||||||
if has_audio(path):
|
if has_audio(path):
|
||||||
gen_subtitles(path_mapping(path), transcribe_or_translate, False, forceLanguage)
|
gen_subtitles(path_mapping(path), transcribe_or_translate, False, forceLanguage)
|
||||||
# Set up the observer to watch for new files
|
# Set up the observer to watch for new files
|
||||||
observer = Observer()
|
if monitor:
|
||||||
for path in transcribe_folders:
|
observer = Observer()
|
||||||
if os.path.isdir(path):
|
for path in transcribe_folders:
|
||||||
handler = NewFileHandler()
|
if os.path.isdir(path):
|
||||||
observer.schedule(handler, path, recursive=True)
|
handler = NewFileHandler()
|
||||||
observer.start()
|
observer.schedule(handler, path, recursive=True)
|
||||||
logging.info("Finished searching and queueing files for transcription. Now watching for new files.")
|
observer.start()
|
||||||
|
logging.info("Finished searching and queueing files for transcription. Now watching for new files.")
|
||||||
|
|
||||||
whisper_languages = {
|
whisper_languages = {
|
||||||
"en": "english",
|
"en": "english",
|
||||||
|
|||||||
Reference in new issue
Block a user