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.
[Tech support] How to get filename after a download has completed (Python) #16401
Comments
|
Sorry, my bad. Didn't see the full example.
|
|
please a complete example, I need to understand it completely |
|
Just import youtube_dl I guess.. |
|
Well, well, you go there, rather I wanted to know what more options it offers, for example: |
|
Never tried doing subtitles, will try.. If you convert to other format, |
Before submitting an issue make sure you have:
What is the purpose of your issue?
Hello,
I want to download
audiofiles using Python (using--extract-audio) and then get the final filename after youtube-dl / ffmpeg are done with it.Example
output-
Now how do I know what the final filename (or just the file extension) was, after the download finished?
I could also do this, as suggested by readme
But I couldn't find the final filename in
ydls attributes.I could have my application work by just searching using
song.spotify_id, but that seems a little janky?