mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 02:52:33 +01:00
fetchart: Privatize global source list (#1148)
This commit is contained in:
parent
b3bf70c11d
commit
ba044f8e20
1 changed files with 4 additions and 3 deletions
|
|
@ -343,10 +343,11 @@ class FetchArtPlugin(plugins.BeetsPlugin):
|
|||
self.import_stages = [self.fetch_art]
|
||||
self.register_listener('import_task_files', self.assign_art)
|
||||
|
||||
if not HAVE_ITUNES and u'itunes' in SOURCES_ALL:
|
||||
SOURCES_ALL.remove(u'itunes')
|
||||
available_sources = list(SOURCES_ALL)
|
||||
if not HAVE_ITUNES and u'itunes' in available_sources:
|
||||
available_sources.remove(u'itunes')
|
||||
self.config['sources'] = plugins.sanitize_choices(
|
||||
self.config['sources'].as_str_seq(), SOURCES_ALL)
|
||||
self.config['sources'].as_str_seq(), available_sources)
|
||||
|
||||
# Asynchronous; after music is added to the library.
|
||||
def fetch_art(self, session, task):
|
||||
|
|
|
|||
Loading…
Reference in a new issue