mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 11:32:30 +01:00
remove verbose option (#92)
The lastgenre command should always log what it's doing so the user can see the progress being made. If you really don't want any output, just pipe to /dev/null.
This commit is contained in:
parent
0c29c52f8c
commit
f38bed787e
1 changed files with 6 additions and 10 deletions
|
|
@ -317,10 +317,6 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
action='store_true',
|
||||
default=self.config['force'].get(bool),
|
||||
help='re-download genre when already present')
|
||||
lastgenre_cmd.parser.add_option('-v', '--verbose', dest='verbose',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='log genre match details')
|
||||
lastgenre_cmd.parser.add_option('-s', '--source', dest='source',
|
||||
type='string',
|
||||
default=self.config['source'].get(),
|
||||
|
|
@ -333,16 +329,16 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
|
||||
for album in lib.albums(ui.decargs(args)):
|
||||
album.genre, src = self._get_album_genre(album, opts.force)
|
||||
if opts.verbose:
|
||||
log.info(u'LastGenre: Album({0} - {1}) > {2}({3})'.format(
|
||||
album.albumartist, album.album, album.genre, src))
|
||||
log.info(u'genre for album {0} - {1} ({2}): {3}'.format(
|
||||
album.albumartist, album.album, src, album.genre
|
||||
))
|
||||
|
||||
for item in album.items():
|
||||
item.genre, src = self._get_item_genre(item, opts.force)
|
||||
lib.store(item)
|
||||
if opts.verbose:
|
||||
log.info(u'LastGenre: Item({0} - {1}) > {2}({3})'.format(
|
||||
item.artist, item.title, item.genre, src))
|
||||
log.info(u'genre for track {0} - {1} ({2}): {3}'.format(
|
||||
item.artist, item.title, src, item.genre
|
||||
))
|
||||
if write:
|
||||
item.write()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue