small fixes; consistently use 'source' instead of 'origin'

This commit is contained in:
wordofglass 2016-04-16 21:32:04 +02:00
parent c27907b043
commit 740efc0a0e
2 changed files with 10 additions and 10 deletions

View file

@ -676,7 +676,7 @@ class FetchArtPlugin(plugins.BeetsPlugin, RequestMixin):
'google_key': None,
'google_engine': u'001442825323518660753:hrh5ch1gjzm',
'fanarttv_key': None,
'store_origin': False
'store_source': False,
})
self.config['google_key'].redact = True
self.config['fanarttv_key'].redact = True
@ -704,7 +704,7 @@ class FetchArtPlugin(plugins.BeetsPlugin, RequestMixin):
cover_names = self.config['cover_names'].as_str_seq()
self.cover_names = map(util.bytestring_path, cover_names)
self.cautious = self.config['cautious'].get(bool)
self.store_origin = self.config['store_origin'].get(bool)
self.store_source = self.config['store_source'].get(bool)
self.src_removed = (config['import']['delete'].get(bool) or
config['import']['move'].get(bool))
@ -759,12 +759,12 @@ class FetchArtPlugin(plugins.BeetsPlugin, RequestMixin):
def _set_art(self, album, candidate, delete=False):
album.set_art(candidate.path, delete)
if self.store_origin:
# store the origin of the chosen artwork in a flexible field
if self.store_source:
# store the source of the chosen artwork in a flexible field
self._log.debug(
u"Storing artorigin for {0.albumartist} - {0.album}",
u"Storing art_source for {0.albumartist} - {0.album}",
album)
album.artorigin = candidate.source
album.art_source = candidate.source
album.store()
# Synchronous; after music files are put in place.

View file

@ -62,8 +62,8 @@ file. The available options are:
Default: The `beets custom search engine`_, which searches the entire web.
**fanarttv_key**: The personal API key for requesting art from
fanart.tv. See below.
**store_origin**: If enabled, fetchart store the artwork's source in a
flexible tag. See below for the rationale behind this.
- **store_source**: If enabled, fetchart store the artwork's source in a
flexible tag named ``art_source``. See below for the rationale behind this.
Default: ``no``.
Note: ``minwidth`` and ``enforce_ratio`` options require either `ImageMagick`_
@ -185,7 +185,7 @@ personal key will give you earlier access to new art.
.. _on their blog: https://fanart.tv/2015/01/personal-api-keys/
Storing the artwork's origin
Storing the Artwork's Source
----------------------------
Storing the current artwork's source gives the opportunity to selectively
@ -193,7 +193,7 @@ search for new art. For example, if some albums have artwork placed manually in
their directories that should not be replaced by a forced album art fetch, you
could do
``beet fetchart -f ^artorigin:filesystem``
``beet fetchart -f ^art_source:filesystem``
Embedding Album Art
-------------------