I am making a very simple YouTube downloader for personal use. As it's a small simple project, I'm simply using the power of ElectronJS
and Node-YTDL-Core
to make it.
One of the things I'm adding, for obvious reasons, is an MP3/MP4 toggle using Radio Buttons
. If it wasn't obvious, the code checks if MP3 was checked, runs a code if so, then checks if mp4 was checked if mp3 wasn't, runs code.
However, when I run the code and selected "MP4", it pops the radio to 'MP3' and the console is logged with "Downloaded MP3." instead of "Downloaded MP4."
As both codes are long: I've provided in-depth snippets hosted via GitHub Gist to store the source.
https://gist.github.com/Incrested/78acf34644525632ad8825d518535bd2