mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Add line in dev docs for new hook.
This commit is contained in:
parent
6c4cb82c03
commit
39b5a7636c
1 changed files with 8 additions and 0 deletions
|
|
@ -200,6 +200,14 @@ The events currently available are:
|
||||||
import pipeline stage is a better choice (see :ref:`plugin-stage`).
|
import pipeline stage is a better choice (see :ref:`plugin-stage`).
|
||||||
Parameters: ``task`` and ``session``.
|
Parameters: ``task`` and ``session``.
|
||||||
|
|
||||||
|
* `import_task_before_choice`: called after candidate search for an import task
|
||||||
|
before any decision is made about how/if to import or tag. Can be used to
|
||||||
|
present information about the task or initiate interaction with the user
|
||||||
|
before importing occurs. Return an importer action to take a specific action.
|
||||||
|
Parameters: ``task``, ``session``, and ``previous`` (which is the action
|
||||||
|
specified by the previous event handler for the same task, allowing an early
|
||||||
|
exist if e.g. a previous plugin has already selected to skip the import)
|
||||||
|
|
||||||
* `import_task_choice`: called after a decision has been made about an import
|
* `import_task_choice`: called after a decision has been made about an import
|
||||||
task. This event can be used to initiate further interaction with the user.
|
task. This event can be used to initiate further interaction with the user.
|
||||||
Use ``task.choice_flag`` to determine or change the action to be
|
Use ``task.choice_flag`` to determine or change the action to be
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue