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

Adding option for hooks after postprocessors to YoutubeDL #27573

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alexmerkel
Copy link
Contributor

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

This pull request adds an option called post_hooks to youtube_dl/YoutubeDL.py. The option takes a list of callable functions. The functions will be called as almost the last step in the download process, after all postprocessors are done. They have to accept the filename as an argument.
Additionally, a test for the post hooks functionality is added in this pull requests. As the test contains downloads, it is added to the respective lists in the Makefile and the run_tests scripts.

pukkandan pushed a commit to yt-dlp/yt-dlp that referenced this pull request Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant