Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
So, I'm working on a .sh script to download all songs by a certain artist (from youtube.com), and I'm using the -o flag to change the output filename, I tell it to put "track_number" in the filename, but instead it just says "NA" where the track number should be. I am on Zorin OS Lite (based on Ubuntu LTS). Here is my command, you can run it but make sure to create a folder to run it in, don't just run it in your home folder or something because it creates a decent amount of files.
youtube-dl -o "%(album)s (%(release_year)s)/%(track_number)s - %(track)s.%(ext)s" -x https://www.youtube.com/channel/UCVFdi02lPXFIboBDxhm1Eqg