If I use yt-dlp to download a video from YouTube, it becomes .webm.
If I use yt-dlp to download a video as audio from YouTube, it becomes .opus.
However, yt-dlp --get-filename (which I have to run in my situation) always claims that the file will have the file extension .webm, even though .opus is actually created when you download only the audio (-f ba --extract-audio).
This means that I cannot accurately know whether the file was downloaded, so my script just loops forever, downloading it over and over again.
Is this a bug in yt-dlp? I've asked them about it in their chat room but never received any response. Unable to ask on Github.
PS: Also, even though it's called "--get-filename", it actually seems to return/output the full file path -- not just the file name itself.