I don't know if yt-dlg is still not working properly. The app is no longer maintained.
It seems yt-dlp or 4k are more recommended.