I am trying to use this script to download a YouTube video using Python.
I am currently using it as follows
youtube-dl "http://www.youtube.com/watch?v=dvsdgyuv"
In the documentation they wrote, I can use these
id: The sequence will be replaced by the video identifier.
url: The sequence will be replaced by the video URL.
uploader: The sequence will be replaced by the nickname of the person who uploaded the video.
upload_date: The sequence will be replaced by the upload date in YYYYMMDD format.
title: The sequence will be replaced by the literal video title.
stitle: The sequence will be replaced by a simplified video title, restricted to alphanumeric characters and dashes.
ext: The sequence will be replaced by the appropriate extension (like flv or mp4).
epoch: The sequence will be replaced by the Unix epoch when creating the file.
autonumber: The sequence will be replaced by a five-digit number that will be increased with each download, starting at zero.`enter code here`
They did not write how I can use it.
How can I use the name of the video file as well as the name?
They said use it, but I don’t know how to use it on the command line.
%(title)s-%(id)s.%(ext)s.
source
share