Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to save output of outtmpl as a variable? #23987

Closed
chon-panic opened this issue Feb 7, 2020 · 1 comment
Closed

How to save output of outtmpl as a variable? #23987

chon-panic opened this issue Feb 7, 2020 · 1 comment

Comments

@chon-panic
Copy link

@chon-panic chon-panic commented Feb 7, 2020

Checklist

  • [x ] I'm asking a question
  • [x ] I've looked through the README and FAQ for similar questions
  • [x ] I've searched the bugtracker for similar questions including closed ones

Question

Do you know if it is possible to capture the value of the filename created if outtmpl ='./Songs/%(uploader)s/%(title)s-%(upload_date)s-%(id)s.%(ext)s'? I would like to perform other operations on the file, and having it's name available would be very convenient. I would think something like the following would work:

youtube_dl.YoutubeDL().download([songurl]).outtmpl
@chon-panic chon-panic added the question label Feb 7, 2020
@dstftw dstftw closed this Feb 7, 2020
@dstftw dstftw added the duplicate label Feb 7, 2020
@chon-panic
Copy link
Author

@chon-panic chon-panic commented Feb 7, 2020

Found the answer here.

#13750 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.