Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
botbahlul authored Oct 31, 2023
1 parent e77e5c4 commit 0120b2d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions linux/autosrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import shutil


VERSION = "1.4.8"
VERSION = "1.4.9"


class Language:
Expand Down Expand Up @@ -3679,14 +3679,23 @@ def main():
#print(f"len(media_filepaths) = {len(media_filepaths)}")
#print(f"completed_tasks = {completed_tasks}\n")

if len(media_filepaths)>0 and completed_tasks == len(media_filepaths):
if len(media_filepaths)>0 and len(processed_list)>0 and completed_tasks == len(media_filepaths) + len(processed_list):
transcribe_end_time = time.time()
transcribe_elapsed_time = transcribe_end_time - transcribe_start_time
transcribe_elapsed_time_seconds = timedelta(seconds=int(transcribe_elapsed_time))
transcribe_elapsed_time_str = str(transcribe_elapsed_time_seconds)
hour, minute, second = transcribe_elapsed_time_str.split(":")
msg = "Total running time : %s:%s:%s" %(hour.zfill(2), minute, second)
print(msg)
elif len(media_filepaths)>0 and completed_tasks == len(media_filepaths):
transcribe_end_time = time.time()
transcribe_elapsed_time = transcribe_end_time - transcribe_start_time
transcribe_elapsed_time_seconds = timedelta(seconds=int(transcribe_elapsed_time))
transcribe_elapsed_time_str = str(transcribe_elapsed_time_seconds)
hour, minute, second = transcribe_elapsed_time_str.split(":")
msg = "Total running time : %s:%s:%s" %(hour.zfill(2), minute, second)
print(msg)


if pool:
pool.close()
Expand Down

0 comments on commit 0120b2d

Please sign in to comment.