This bash script downloads a video from YouTube and convert it to MP3.
0
0
3
| 1 | #!/bin/bash |
| 2 | yt-dlp \ |
| 3 | --check-formats \ |
| 4 | --progress \ |
| 5 | --ignore-errors \ |
| 6 | --write-info-json \ |
| 7 | --add-metadata \ |
| 8 | --audio-format "mp3" \ |
| 9 | --extract-audio \ |
| 10 | --format bestaudio/best \ |