mirror of
https://github.com/beetbox/beets.git
synced 2026-02-02 13:33:19 +01:00
config name change, changelog for #692
This commit is contained in:
parent
8cc05077ed
commit
80bec3935e
3 changed files with 10 additions and 5 deletions
|
|
@ -51,6 +51,8 @@ def contains_feat(title):
|
|||
def update_metadata(item, feat_part, drop_feat):
|
||||
"""Choose how to add new artists to the title and set the new
|
||||
metadata. Also, print out messages about any changes that are made.
|
||||
If `drop_feat` is set, then do not add the artist to the title; just
|
||||
remove it from the artist field.
|
||||
"""
|
||||
# In all cases, update the artist fields.
|
||||
ui.print_(u'artist: {0} -> {1}'.format(item.artist, item.albumartist))
|
||||
|
|
@ -116,7 +118,7 @@ class FtInTitlePlugin(BeetsPlugin):
|
|||
super(FtInTitlePlugin, self).__init__()
|
||||
|
||||
self.config.add({
|
||||
'drop_feat': False
|
||||
'drop': False
|
||||
})
|
||||
|
||||
self._command = ui.Subcommand(
|
||||
|
|
@ -124,7 +126,7 @@ class FtInTitlePlugin(BeetsPlugin):
|
|||
help='move featured artists to the title field')
|
||||
|
||||
self._command.parser.add_option(
|
||||
'-d', '--drop', dest='drop_feat',
|
||||
'-d', '--drop', dest='drop',
|
||||
action='store_true', default=False,
|
||||
help='drop featuring from artists and ignore title update')
|
||||
|
||||
|
|
@ -132,7 +134,7 @@ class FtInTitlePlugin(BeetsPlugin):
|
|||
|
||||
def func(lib, opts, args):
|
||||
self.config.set_args(opts)
|
||||
drop_feat = self.config['drop_feat'].get(bool)
|
||||
drop_feat = self.config['drop'].get(bool)
|
||||
write = config['import']['write'].get(bool)
|
||||
|
||||
for item in lib.items(ui.decargs(args)):
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ Changelog
|
|||
|
||||
* The new :doc:`/plugins/play` lets you start your desktop music player with
|
||||
the songs that match a query. Thanks to David Hamp-Gonsalves.
|
||||
* :doc:`/plugins/ftintitle`: A new option lets you remove featured artists
|
||||
entirely instead of moving them to the title. Thanks to SUTJael.
|
||||
|
||||
Fixes:
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@ To use the plugin, just enable it and run the command::
|
|||
The query is optional; if it's left off, the transformation will be applied to
|
||||
your entire collection.
|
||||
|
||||
The ``-d`` option drop only featuring information from the ``artist`` field. The
|
||||
``title`` field will not be updated.
|
||||
If you prefer to remove featured artists entirely instead of adding them to
|
||||
the title field, either use the ``-d`` flag to the command or set the
|
||||
``ftintitle.drop`` config option.
|
||||
|
||||
.. _MusicBrainz style: http://musicbrainz.org/doc/Style
|
||||
|
|
|
|||
Loading…
Reference in a new issue