mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 09:33:46 +01:00
fetchart: remote_priority config option
This commit is contained in:
parent
7529fe1f78
commit
d1e50da71f
3 changed files with 9 additions and 1 deletions
|
|
@ -179,7 +179,8 @@ def art_for_album(album, paths, maxwidth=None, local_only=False):
|
|||
break
|
||||
|
||||
# Web art sources.
|
||||
if not local_only and not out:
|
||||
remote_priority = config['fetchart']['remote_priority'].get(bool)
|
||||
if not local_only and (remote_priority or not out):
|
||||
for url in _source_urls(album):
|
||||
if maxwidth:
|
||||
url = ArtResizer.shared.proxy_url(maxwidth, url)
|
||||
|
|
@ -219,6 +220,7 @@ class FetchArtPlugin(BeetsPlugin):
|
|||
self.config.add({
|
||||
'auto': True,
|
||||
'maxwidth': 0,
|
||||
'remote_priority': False,
|
||||
})
|
||||
|
||||
# Holds paths to downloaded images between fetching them and
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ New configuration options:
|
|||
* :ref:`max_filename_length` controls truncation of long filenames. Also, beets
|
||||
now tries to determine the filesystem's maximum length automatically if you
|
||||
leave this option unset.
|
||||
* :doc:`/plugins/fetchart`: The ``remote_priority`` option searches remote
|
||||
(Web) art sources even when local art is present.
|
||||
* You can now customize the character substituted for path separators (e.g., /)
|
||||
in filenames via ``path_sep_replace``. The default is an underscore. Use this
|
||||
setting with caution.
|
||||
|
|
|
|||
|
|
@ -75,6 +75,10 @@ When you choose to apply changes during an import, beets searches all sources
|
|||
for album art. For "as-is" imports (and non-autotagged imports using the ``-A``
|
||||
flag), beets only looks for art on the local filesystem.
|
||||
|
||||
By default, remote (Web) art sources are only queried if no local art is found
|
||||
in the filesystem. To query remote sources every time, set the
|
||||
``remote_priority`` configuration option to false.
|
||||
|
||||
Embedding Album Art
|
||||
-------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue