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.
Get filename (Python API) #13750
Get filename (Python API) #13750
Comments
|
|
|
When I use my code :
|
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.07.23. 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?
Hi,
I am working with the barely documented youtube-dl Pyhton API. What I want to do is get the final name of the file also using the provided
outtmploption. My code looks like this:As you possibly know the
titlefield fromextract_infodoes only return the raw title of the video, not the 'editied' version withouttmpl. The logger gets the filename because theforcefilenameoption is speciefied. But I want to return the filename. Is there a way to do this? For now I have solved it by executing the command-line youtube-dl form pyhton. A way to do it with the API would be very cool.Thanks,
Levin