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.
How can I determine the directory that the video will be saved to (or was saved to) via a python script? #16224
Comments
|
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.04.16. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
How can I determine the directory that the video will be saved to (or was saved to) via a python script?
I am attempting to download multiple video files, but also want to save some of the meta data that is provided by
extract_infoto a separate file which is stored with the video file. My script to download looks like this:At this point, I'd like to write specific values from
metato a file in the%(title)s-%(id)sdirectory specified inydl_opts. I'd do this with something like the following immediately after themeta = ydl.extract_info(...)line above:How do I specify the value of
<DIRECTORY>to be in thewith openline? I just need the know how to access the value thatydl_opts['outtmpl']becomes. I can parse the directory out on my own.