Update modules/utils/subtitle_manager.py
Browse files
modules/utils/subtitle_manager.py
CHANGED
@@ -60,7 +60,7 @@ def get_txt(segments):
|
|
60 |
return output
|
61 |
|
62 |
|
63 |
-
def parse_srt(file_path):
|
64 |
"""Reads SRT file and returns as dict"""
|
65 |
with open(file_path, 'r', encoding='utf-8') as file:
|
66 |
srt_data = file.read()
|
|
|
60 |
return output
|
61 |
|
62 |
|
63 |
+
def parse_srt(file_path,diarization: bool = False):
|
64 |
"""Reads SRT file and returns as dict"""
|
65 |
with open(file_path, 'r', encoding='utf-8') as file:
|
66 |
srt_data = file.read()
|