mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
new plugin event: import_task_files
This commit is contained in:
parent
c5424dce05
commit
ad4b7f8ff5
3 changed files with 9 additions and 0 deletions
|
|
@ -779,6 +779,9 @@ def manipulate_files(config):
|
|||
for item in items:
|
||||
config.lib.store(item)
|
||||
|
||||
# Plugin event.
|
||||
plugins.send('import_task_files', config=config, task=task)
|
||||
|
||||
def fetch_art(config):
|
||||
"""A coroutine that fetches and applies album art for albums where
|
||||
appropriate.
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ Changelog
|
|||
`$genre` would use the old genre instead of the newly discovered one.
|
||||
* New plugin event: ``import_task_choice`` is called after an import task has an
|
||||
action assigned.
|
||||
* New plugin event: `import_task_files` is called after a task's file
|
||||
manipulation has finished (copying or moving files, writing metadata tags).
|
||||
* New plugin event: ``library_opened`` is called when beets starts up and
|
||||
opens the library database.
|
||||
* Fix a crash when moving files to a Samba share.
|
||||
|
|
|
|||
|
|
@ -142,6 +142,10 @@ currently available are:
|
|||
Use ``task.choice_flag`` to determine the action to be taken. Parameters:
|
||||
``task`` and ``config``.
|
||||
|
||||
* *import_task_files*: called after an import task finishes manipulating the
|
||||
filesystem (copying and moving files, writing metadata tags). Parameters:
|
||||
``task`` and ``config``.
|
||||
|
||||
* *library_opened*: called after beets starts up and initializes the main
|
||||
Library object. Parameter: ``lib``.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue