Skip to content

Commit 0120b2d

Browse files
authored
Add files via upload
1 parent e77e5c4 commit 0120b2d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

linux/autosrt.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import shutil
2929

3030

31-
VERSION = "1.4.8"
31+
VERSION = "1.4.9"
3232

3333

3434
class Language:
@@ -3679,14 +3679,23 @@ def main():
36793679
#print(f"len(media_filepaths) = {len(media_filepaths)}")
36803680
#print(f"completed_tasks = {completed_tasks}\n")
36813681

3682-
if len(media_filepaths)>0 and completed_tasks == len(media_filepaths):
3682+
if len(media_filepaths)>0 and len(processed_list)>0 and completed_tasks == len(media_filepaths) + len(processed_list):
36833683
transcribe_end_time = time.time()
36843684
transcribe_elapsed_time = transcribe_end_time - transcribe_start_time
36853685
transcribe_elapsed_time_seconds = timedelta(seconds=int(transcribe_elapsed_time))
36863686
transcribe_elapsed_time_str = str(transcribe_elapsed_time_seconds)
36873687
hour, minute, second = transcribe_elapsed_time_str.split(":")
36883688
msg = "Total running time : %s:%s:%s" %(hour.zfill(2), minute, second)
36893689
print(msg)
3690+
elif len(media_filepaths)>0 and completed_tasks == len(media_filepaths):
3691+
transcribe_end_time = time.time()
3692+
transcribe_elapsed_time = transcribe_end_time - transcribe_start_time
3693+
transcribe_elapsed_time_seconds = timedelta(seconds=int(transcribe_elapsed_time))
3694+
transcribe_elapsed_time_str = str(transcribe_elapsed_time_seconds)
3695+
hour, minute, second = transcribe_elapsed_time_str.split(":")
3696+
msg = "Total running time : %s:%s:%s" %(hour.zfill(2), minute, second)
3697+
print(msg)
3698+
36903699

36913700
if pool:
36923701
pool.close()

0 commit comments

Comments
 (0)