Hotfix progress bar

This commit is contained in:
henryruhs 2024-12-24 11:13:17 +01:00
parent 83daaa89a0
commit e579519668
2 changed files with 1 additions and 5 deletions

View File

@ -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)

View File

@ -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))