diff --git a/beets/library.py b/beets/library.py index fe107d0ff..7167bb267 100644 --- a/beets/library.py +++ b/beets/library.py @@ -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']: diff --git a/docs/changelog.rst b/docs/changelog.rst index 8faae60a6..46951c677 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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.