SET MYPATH="%USERPROFILE%\Desktop\YOUTUBE-DL\v20201209\config" Set program="%USERPROFILE%\Desktop\YOUTUBE-DL\v20201209\youtube-dl.exe" %program% -f %option% "%youtubelink%" "%MYCONFIG%" "%MYPATH%"
Where -o is the flag, %userprofile%/Desktop/DL/ is where I want the download to go, and %(title)s-%(id)s.%(ext)s is the command to keep the native filename. This is all you have to put into the file. Here is a basic sample of a config file: this is where you want your downloads to go.You can create a youtube-dl.txt first it it's easier, but the file must be "nf". Decide where you want to create a configuration file.This is the EXACT ANOTHER USEFUL method to download your video into a desired DIRECTORY, and also keep the native filename of the download. So, if you have -o set in a configuration file to be the default location for downloads, but want to save downloads to somewhere else for a current job, simply calling -o on the command line will override the configuration file for the current run of the program only. For more on the Configuration file, read the documentation on it here.Įven when an option is configured in a configuration file, it can be overridden by calling it explicitly from the command line. For example, for the output switch, you'd use: -o %USERPROFILE%\Desktop. Place youtube-dl options in the file as you'd normally use them on the command line with youtube-dl, placing each one on a new line. Inside that folder, create a plain text file named config.txt. In %APPDATA%\Roaming, create a youtube-dl folder if one doesn't already exist. To set up a configuration file for youtube-dl, assuming you have Windows: The configuration file can be used to set a default output destination so that you never have to explicitly set an output again. This is what you'll need for the default download location that you're looking for. Youtube-dl also allows use of a configuration file - a file that can be used to configure the switches you most frequently use so the program can pull them from there instead, saving you from having to explicitly call them each time you run it. For all of the variables that can be used in a filename, have a look at the youtube-dl documentation here. In this example, it will output the title of the original downloaded video followed by the file extension, which is my personal preference.
Youtube-dl -o '%USERPROFILE%\Desktop\%(title)s-%(id)s.%(ext)s' Note that -o has a dual function in that it also sets a template for how your output files will be named, using variables. Output on youtube-dl is handled with the -output or -o switch pass it as an option, followed by the destination you want to save your downloads to: Recently updated with an even more modern and responsive interface, there's no reason to not download this small and powerful app today.You need to use the -o switch with the Configuration file Other than a lack of support for video downloading, Google nailed it with the YouTube app.
While there are many third-party tools and Android apps that do just this, Google refuses to officially support this function.
Unfortunately, the app does not allow offline video downloading.
Now, though, the app is responsive and very fast and easy to use. No matter how optimized the HTML5 website is, the user will always have to go through a browser and then through the website, making for a clunky and disjointed experience. Namely, the user interface is much easier to use. The app version still holds some advantages over the website. Just visiting on an Android device will allow the user to access the same content that they would through the app. Because of this, it's no longer absolutely necessary to use the app. However, with the dawn of HTML5, they converted their website into HTML5 format, which mobile devices do support. YouTube originally required an app because their website's player used Flash, and most phones were not able to play Flash content. Their app by the same name aims to make playing YouTube videos easy and fast for every Android user. YouTube, a startup previously acquired by Google, is Google's flagship video sharing outlet.