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

Extend variables used with the -o flag to other flags #9201

Closed
sapphonie opened this issue Apr 15, 2016 · 6 comments
Closed

Extend variables used with the -o flag to other flags #9201

sapphonie opened this issue Apr 15, 2016 · 6 comments

Comments

@sapphonie
Copy link

@sapphonie sapphonie commented Apr 15, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.04.13
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


Description of your issue, suggested solution and other information

Please allow the variables used with the -o flag (%(title)s , %(uploader)s , etc) to also be used with other flags such as
[deleted]
--download-archive
&tc.

It would make my life a whole lot easier.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 15, 2016

Just parse JSON, we are not going to bloat the cli interface with all these commands.

@dstftw dstftw closed this Apr 15, 2016
@sapphonie
Copy link
Author

@sapphonie sapphonie commented Apr 15, 2016

I have literally no idea how to do that.

Here's what I'm trying to do:

https://stackoverflow.com/questions/36637319/youtube-dl-problems-scripting

I just want to put the archive file in the same folder as the channel that I'm downloading, but the --download-archive flag doesn't support any of the python vars used to create the folder/file name for the -o tag.

@deryni
Copy link

@deryni deryni commented Apr 15, 2016

How would expanding the formatting support you already have to other output file arguments "bloat" the cli interface exactly?

Also what json should he be parsing and how would that solve the problem of putting the other output files in the same single location easily?

@sapphonie
Copy link
Author

@sapphonie sapphonie commented Apr 16, 2016

Bump.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 16, 2016

You should better describe your issue. None of

--write-description
--write-info-json
--write-annotations

receive any parameters so -o-like template does not make any sense for them. I thought first your request is about adding --write-uploader etc. Still adding template support for --download-archive is bad idea.

@sapphonie
Copy link
Author

@sapphonie sapphonie commented Apr 16, 2016

My issue is that I'm downloading entire youtube channels to folders that are named via vars used with the -o flag. Since the --download-archive flag doesn't take any variables from the -o flag, I have to manually move them after the fact, which defeats the whole purpose of an automated script.

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
3 participants
You can’t perform that action at this time.