Hotfix progress bar
This commit is contained in:
parent
83daaa89a0
commit
e579519668
@ -48,7 +48,6 @@ def get_static_download_size(url : str) -> int:
|
||||
|
||||
for line in lines:
|
||||
__line__ = line.decode().lower()
|
||||
|
||||
if 'content-length:' in __line__:
|
||||
_, content_length = __line__.split('content-length:')
|
||||
return int(content_length)
|
||||
|
@ -22,11 +22,8 @@ def run_ffmpeg_with_progress(args: List[str], update_progress : UpdateProgress)
|
||||
|
||||
while process_manager.is_processing():
|
||||
try:
|
||||
lines = process.stdout.readlines()
|
||||
|
||||
for line in lines:
|
||||
__line__ = line.decode().lower()
|
||||
|
||||
while __line__ := process.stdout.readline().decode().lower():
|
||||
if 'frame=' in __line__:
|
||||
_, frame_number = __line__.split('frame=')
|
||||
update_progress(int(frame_number))
|
||||
|
Loading…
Reference in New Issue
Block a user