но с фигурами увы подсказать не смогу
with open(recordingFile, 'wb') as f:
for ch in range(i):
with open(f'chunk_{ch}', 'rb') as chunk_file:
recordingFile.write(chunk_file.read())
if "youtu.be/" in src:
video_id = src.split("youtu.be/")[1]
else:
video_id = src.split("v=")[1]