mirror of
https://github.com/beetbox/beets.git
synced 2025-12-07 17:16:07 +01:00
Rewrite docs for keep_allowed/existing change
This commit is contained in:
parent
4c7d0c98cf
commit
998f2f8984
1 changed files with 20 additions and 16 deletions
|
|
@ -113,19 +113,24 @@ popular, which is often the most generic (in this case ``folk``). By setting
|
||||||
|
|
||||||
Handling pre-populated tags
|
Handling pre-populated tags
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
The ``force`` and ``keep_allowed`` options control how pre-existing genres are
|
The ``force``, ``keep_existing`` and ``whitelist`` options control how
|
||||||
handled. By default, the plugin fetches new genres for empty tags only
|
pre-existing genres are handled.
|
||||||
(``force: no``), and keeps whitelisted genres in pre-populated tags
|
|
||||||
(``keep_allowed: yes``).
|
|
||||||
|
|
||||||
To write new genres to empty tags and keep *any* pre-existing tag content
|
By default, the plugin *combines* newly fetched last.fm genres with whitelisted
|
||||||
as-is, set ``force: no`` and ``keep_allowed: no``.
|
pre-existing ones (``force: yes`` and ``keep_existing: yes``).
|
||||||
|
|
||||||
|
To write new genres to empty tags only and keep pre-populated tags untouched,
|
||||||
|
set ``force: no``.
|
||||||
|
|
||||||
To *overwrite* any content of pre-populated tags, set ``force: yes`` and
|
To *overwrite* any content of pre-populated tags, set ``force: yes`` and
|
||||||
``keep_allowed: no``.
|
``keep_existing: no``.
|
||||||
|
|
||||||
To *combine* newly fetched last.fm genres with whitelisted pre-existing genres,
|
To *combine* newly fetched last.fm genres with any pre-existing ones, set
|
||||||
set ``force: yes`` and ``keep_allowed: yes``.
|
``force: yes``, ``keep_existing: yes`` but also disable the whitelist
|
||||||
|
(``whitelist: False``).
|
||||||
|
|
||||||
|
Any combinations including ``force: no`` and ``keep_existing: yes`` is invalid
|
||||||
|
(since _not forcing_ means not touching existing tags anyway).
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
-------------
|
-------------
|
||||||
|
|
@ -144,14 +149,13 @@ configuration file. The available options are:
|
||||||
- **fallback**: A string if to use a fallback genre when no genre is found.
|
- **fallback**: A string if to use a fallback genre when no genre is found.
|
||||||
You can use the empty string ``''`` to reset the genre.
|
You can use the empty string ``''`` to reset the genre.
|
||||||
Default: None.
|
Default: None.
|
||||||
- **force**: By default, lastgenre will fetch new genres for empty tags and
|
- **force**: By default, lastgenre will fetch new genres for empty as well as
|
||||||
leave pre-existing content in place. When changing this option to ``yes``
|
pre-populated tags. Adjust the ``keep_existing`` option to combine existing
|
||||||
also adjust the ``keep_allowed`` option to your preference (see `Handling
|
and new genres. (see `Handling pre-populated tags`_).
|
||||||
pre-populated tags`_).
|
|
||||||
Default: ``no``.
|
Default: ``no``.
|
||||||
- **keep_allowed**: By default, whitelisted genres remain in pre-populated
|
- **keep_existing**: By default, genres remain in pre-populated tags. Depending
|
||||||
tags. When changing this optio to ``yes``, also ajdust the ``force``
|
If a whitelist is in place, existing genres get a cleanup. Only valid in
|
||||||
option to your preference (see `Handling pre-populated tags`_).
|
combination with an active ``force`` option.
|
||||||
Default: ``yes``.
|
Default: ``yes``.
|
||||||
- **min_weight**: Minimum popularity factor below which genres are discarded.
|
- **min_weight**: Minimum popularity factor below which genres are discarded.
|
||||||
Default: 10.
|
Default: 10.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue