return sum(
                float(task.video.format_info["duration"])
                for task in tasks
                if task.status != STATUS.done