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

Feature request: --touch-files (update timestamp on skipped local files) #13321

Closed
glenn-slayden opened this issue Jun 8, 2017 · 3 comments
Closed

Comments

@glenn-slayden
Copy link
Contributor

@glenn-slayden glenn-slayden commented Jun 8, 2017

Feature request: --touch-files which would cause a previously downloaded file's timestamp (i.e. its local filesystem 'modified' date) to be updated any time the download is reconsidered, even if excluded by selection features (such as --download-archive).

Use case: enables acquiring and unconditionally tagging a specific set of files based on a URL list, regardless of whether newly or previously downloaded.

@glenn-slayden
Copy link
Contributor Author

@glenn-slayden glenn-slayden commented Jun 8, 2017

Although a similar effect could be achieved by temporarily omitting --download-archive, doing so would re-download previously obtained files. The proposed --touch-files option would ensure that existing files are simply marked without re-downloading.

@glenn-slayden
Copy link
Contributor Author

@glenn-slayden glenn-slayden commented Jun 8, 2017

Obviously, this option would only apply if a local file can be found to touch. I believe that, currently, being listed in the --download-archive bypasses the filename-building step altogether, so this code would need to be changed in the case where --touch-files is active.

Specifically, for skipped files, the filename would be have to be built as usual with the available/current templates, and if that target file exists locally then it can be 'touched'. If no such file exists, it would not be an error, instead just reverting to the current behavior (no action taken).

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 8, 2017

Videos which haven't passed filters (in particular videos presented in download archive) are always skipped and other options have no effect on corresponding files. I don't feel like changing this behavior for just one option. This feature also seems too specific and may produce unexpected results since download archive doesn't track filenames.
You can achieve this with simple script.

@dstftw dstftw closed this Jun 8, 2017
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.