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

Allow passing %(uploader) to --download-archive for batch jobs #23263

Closed
HeySteets opened this issue Nov 29, 2019 · 2 comments
Closed

Allow passing %(uploader) to --download-archive for batch jobs #23263

HeySteets opened this issue Nov 29, 2019 · 2 comments
Labels

Comments

@HeySteets
Copy link

@HeySteets HeySteets commented Nov 29, 2019

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2019.11.28
  • I've searched the bugtracker for similar feature requests including closed ones

Description

I've got an automatic script on my server computer which runs every couple of days to archive YouTube channels I like to watch on-the-go without using data. It's just a single command that links to a batch file on my NAS, which I update to include any new channels I want to be archived.
However, when youtube-dl processes the batch job file, it can't use the --download-archive flag with variables. (Example: youtube-dl [rest of command] --download-archive "Z:\ytdl%(uploader)s") Instead of filling it in with the appropriate uploader, it leaves the variable blank. I realize I could use multiple commands to accomplish this, but the whole point of setting up the batch job system for me was the simplicity of just dropping a link into a txt file and knowing it'll process.

I'd like to request that the --download-archive flag is capable of using variables like uploader, playlist, etc. to determine the location of the archive file conditionally. I realize this could be difficult to implement, especially since varying links in a batch file can specify different types of media or even different sites altogether which may not include information like uploader or playlist, but assuming the same parser that handles where the output is going handles the archive location, both the content of the download and the archive list should end up in the same location.

Thanks!

@HeySteets HeySteets added the request label Nov 29, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Nov 29, 2019

@dstftw dstftw closed this Nov 29, 2019
@HeySteets
Copy link
Author

@HeySteets HeySteets commented Nov 30, 2019

Ah, sorry for the duplicate. That particular thread didn't pop up when I searched for it, guess I didn't hit any of the keywords. I'll just have to write up a script to do this instead.

Thanks for the redirection!

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.