mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Fix code-blocks
This commit is contained in:
parent
195644fc46
commit
48c7435780
1 changed files with 4 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ Each rule consists of a case-insensitive regular expression pattern, and a
|
|||
replacement string. For example, you might use:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
substitute:
|
||||
- .*jimi hendrix.*: Jimi Hendrix
|
||||
|
||||
|
|
@ -24,6 +25,7 @@ everything before the first ``,``, `` &`` or `` and``, and use this capture
|
|||
group in the output, discarding the rest of the string.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
substitute:
|
||||
- ^(.*?)(,| &| and).*: \1
|
||||
|
||||
|
|
@ -37,5 +39,6 @@ This would handle all the below cases in a single rule:
|
|||
To apply the substitution, you have to call the function ``%substitute{}`` in the paths section. For example:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
paths:
|
||||
default: %substitute{$albumartist}/$year - $album%aunique{}/$track - $title
|
||||
default: \%substitute{$albumartist}/$year - $album\%aunique{}/$track - $title
|
||||
|
|
|
|||
Loading…
Reference in a new issue