mirror of
https://github.com/beetbox/beets.git
synced 2025-12-27 02:52:33 +01:00
allow $path in "beet list -f" templates
This commit is contained in:
parent
22836be22e
commit
30ac59f3d2
2 changed files with 6 additions and 0 deletions
|
|
@ -343,6 +343,10 @@ class Item(object):
|
|||
value = util.sanitize_for_path(value, pathmod, key)
|
||||
mapping[key] = value
|
||||
|
||||
# Additional fields in non-sanitized case.
|
||||
if not sanitize:
|
||||
mapping['path'] = self.path
|
||||
|
||||
# Use the album artist if the track artist is not set and
|
||||
# vice-versa.
|
||||
if not mapping['artist']:
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ Changelog
|
|||
1.0b16 (in development)
|
||||
-----------------------
|
||||
|
||||
* ``list`` command: Templates given with ``-f`` can now show items' paths (using
|
||||
``$path``).
|
||||
* :doc:`/plugins/fetchart`: Fix a bug where cover art filenames could lack
|
||||
a ``.jpg`` extension.
|
||||
* Add the track mapping dictionary to the ``album_distance`` plugin function.
|
||||
|
|
|
|||
Loading…
Reference in a new issue