-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
exec on skipped files #992
Comments
As an aside, if anyone can figure out how to do this with manually editing the code in the meantime, please let me know. Every tweak to the code I've tried has failed spectacularly. |
For exec specifically, you can replace def handle_skip(self):
self.out.skip(self.pathfmt.path)
if self.postprocessors:
for pp in self.postprocessors:
pp.run_after(self.pathfmt)
if self._skipexc:
self._skipcnt += 1
if self._skipcnt >= self._skipmax:
raise self._skipexc() |
I just realized I forgot to thank you for this. Thank you. You should really set up the ability to receive donations through GitHub, I'd gladly send you a fiver every month. |
9c3568c makes it is possible to use the following to run a command on skipped files: {
"name": "exec",
"event": "skip",
"command": "..."
} To run it for both skipped and newly downloaded files, use |
I'm interested in scraping Twitter with retweets, but I don't want to have to constantly redownload the same files from artists retweeting one another.
What I would like to do is, after each download, run a command for copying the file to a different directory structure (or creating a symbolic link). The only problem is exec only runs on files that are downloaded. If it skips a file, no command will be ran.
What I would like is an option to exec on skipped files, exec on downloaded files, or exec on both.
The text was updated successfully, but these errors were encountered: