Fix #2817: drop in configuration was ignored

This was overridden by the default CLI option. Now the default for the
config option is None, meaning no change to the config.
This commit is contained in:
Adrian Sampson 2018-02-23 18:18:32 -05:00
parent 323d90db17
commit a6be28a65e
2 changed files with 4 additions and 1 deletions

View file

@ -89,7 +89,7 @@ class FtInTitlePlugin(plugins.BeetsPlugin):
self._command.parser.add_option( self._command.parser.add_option(
u'-d', u'--drop', dest='drop', u'-d', u'--drop', dest='drop',
action='store_true', default=False, action='store_true', default=None,
help=u'drop featuring from artists and ignore title update') help=u'drop featuring from artists and ignore title update')
if self.config['auto']: if self.config['auto']:

View file

@ -56,6 +56,9 @@ Fixes:
incompatible between the source and target file formats. incompatible between the source and target file formats.
:bug:`2814` :bug:`2814`
Thanks to :user:`autrimpo`. Thanks to :user:`autrimpo`.
* :doc:`/plugins/ftintitle`: The ``drop`` config option had no effect; it now
does what it says it should do.
:bug:`2817`
For developers: For developers: