mirror of
https://github.com/beetbox/beets.git
synced 2026-01-14 12:12:23 +01:00
Adapted va_name in other files
This commit is contained in:
parent
95b80b37aa
commit
57faf015d9
2 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,6 @@ action = Enum('action',
|
|||
|
||||
QUEUE_SIZE = 128
|
||||
SINGLE_ARTIST_THRESH = 0.25
|
||||
VARIOUS_ARTISTS = u'Various Artists'
|
||||
PROGRESS_KEY = 'tagprogress'
|
||||
HISTORY_KEY = 'taghistory'
|
||||
|
||||
|
|
@ -631,7 +630,7 @@ class ImportTask(BaseImportTask):
|
|||
changes['comp'] = False
|
||||
else:
|
||||
# VA.
|
||||
changes['albumartist'] = VARIOUS_ARTISTS
|
||||
changes['albumartist'] = config['va_name'].get(unicode)
|
||||
changes['comp'] = True
|
||||
|
||||
elif self.choice_flag == action.APPLY:
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ import traceback
|
|||
|
||||
from beets import plugins
|
||||
from beets import ui
|
||||
from beets import config
|
||||
from beets.util import normpath, plurality
|
||||
from beets import library
|
||||
|
||||
|
|
@ -291,7 +292,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
result = None
|
||||
if isinstance(obj, library.Item):
|
||||
result = self.fetch_artist_genre(obj)
|
||||
elif obj.albumartist != 'Various Artists':
|
||||
elif obj.albumartist != config['va_name'].get(unicode):
|
||||
result = self.fetch_album_artist_genre(obj)
|
||||
else:
|
||||
# For "Various Artists", pick the most popular track genre.
|
||||
|
|
|
|||
Loading…
Reference in a new issue