Skip to content

Commit

Permalink
Resolves #6
Browse files Browse the repository at this point in the history
  • Loading branch information
rpanderson authored Aug 9, 2020
1 parent 0ed43ee commit 1930563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoscrub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def new_line_callback(self, line):

#format it into seconds
seconds = hhmmssd_to_seconds(time_text)
percentage = min(float(seconds)/self.duration, 1)*100
percentage = max(min(float(seconds)/self.duration, 1), 1e-3) * 100

time_remaining = (time.time()-self.start_time)/percentage*(100-percentage)

Expand Down Expand Up @@ -1172,4 +1172,4 @@ def ffmpegComplexFilter(input_path, filter_script_path, output_path=NUL, run_com
print('[autoscrub:info] Using existing filter_complex script....')

print('[autoscrub:info] Required ffmpeg command:')
result = ffmpegComplexFilter(input_path, filter_script_path, output_path, run_command, overwrite)
result = ffmpegComplexFilter(input_path, filter_script_path, output_path, run_command, overwrite)

0 comments on commit 1930563

Please sign in to comment.