mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 16:34:45 +01:00
Merge pull request #599 from brilnius/spl_auto
Ability to disable auto regeneration of smartplaylist
This commit is contained in:
commit
b8ef621941
3 changed files with 9 additions and 5 deletions
|
|
@ -96,6 +96,7 @@ class SmartPlaylistPlugin(BeetsPlugin):
|
|||
self.config.add({
|
||||
'relative_to': None,
|
||||
'playlist_dir': u'.',
|
||||
'auto': True,
|
||||
'playlists': []
|
||||
})
|
||||
|
||||
|
|
@ -116,5 +117,6 @@ def handle_change(lib):
|
|||
|
||||
@SmartPlaylistPlugin.listen('cli_exit')
|
||||
def update(lib):
|
||||
if database_changed:
|
||||
auto = config['smartplaylist']['auto']
|
||||
if database_changed and auto:
|
||||
update_playlists(lib)
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ New stuff:
|
|||
johtso.
|
||||
* :doc:`/plugins/smartplaylist`: Playlists can now be generated from multiple
|
||||
queries (combined with "or" logic). Album-level queries are also now
|
||||
possible. Thanks to brilnius.
|
||||
possible. Automatic playlist regeneration can now be disabled. Thanks to
|
||||
brilnius.
|
||||
* :doc:`/plugins/echonest`: Echo Nest similarity now weights the tempo in
|
||||
better proportion to other metrics. Also, options were added to specify
|
||||
custom thresholds and output formats. Thanks to Adam M.
|
||||
|
|
|
|||
|
|
@ -59,9 +59,10 @@ to albums that have a ``for_travel`` extensible field set to 1::
|
|||
album_query: 'for_travel:1'
|
||||
query: 'for_travel:1'
|
||||
|
||||
By default, all playlists are regenerated after every beets command that
|
||||
changes the library database. To force regeneration, you can invoke it manually
|
||||
from the command line::
|
||||
By default, all playlists are automatically regenerated after every beets
|
||||
command that changes the library database. This can be disabled by specifying
|
||||
``auto: no``. To force regeneration, you can invoke it manually from the
|
||||
command line::
|
||||
|
||||
$ beet splupdate
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue