allow $path in "beet list -f" templates

This commit is contained in:
Adrian Sampson 2012-08-16 09:00:55 -07:00
parent 22836be22e
commit 30ac59f3d2
2 changed files with 6 additions and 0 deletions

View file

@ -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']:

View file

@ -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.