Skip to content

Commit

Permalink
fix: rename --remix-title option to --from-title
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoltzsche committed Jan 28, 2024
1 parent 2534c9a commit d9e7d57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions beetsplug/autogenre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ def commands(self):
p.add_option('--no-xtractor', action='store_false',
default=self.config['xtractor'].get(),
dest='xtractor', help='do not use xtractor plugin')
p.add_option('--remix-title', action='store_true',
default=self.config['remix_title'].get(),
dest='remix_title', help='derive genre from remix title')
p.add_option('--no-remix-title', action='store_false',
default=self.config['remix_title'].get(),
dest='remix_title', help='do not derive genre from remix title')
p.add_option('--from-title', action='store_true',
default=self.config['from_title'].get(),
dest='from_title', help='derive genre from title')
p.add_option('--no-from-title', action='store_false',
default=self.config['from_title'].get(),
dest='from_title', help='do not derive genre from title')
p.add_option('--parent-genres', action='store_true',
default=self.config['parent_genres'].get(),
dest='parent_genres', help="add primary genre's parent genres")
Expand Down Expand Up @@ -149,7 +149,7 @@ def _run_autogenre_cmd(self, lib, opts, args):
genre = self._essentia_genre(item)
if genre is not None:
source = 'essentia'
if opts.remix_title:
if opts.from_title:
genre, matched = self._fix_remix_genre(item, genre, genre_tree)
if matched and genre is not None:
source = 'title'
Expand Down
2 changes: 1 addition & 1 deletion beetsplug/autogenre/config_default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ all: false
force: false
lastgenre: true
xtractor: true
remix_title: true
from_title: true
parent_genres: true
genre_rosamerica_strong: 0.8
genre_electronic_strong: 0.8
Expand Down

0 comments on commit d9e7d57

Please sign in to comment.