Add documentation for M:SS length

This commit is contained in:
Diego Moreda 2015-12-09 16:30:20 +01:00
parent 4afdbdfdf4
commit a5ecc77663
2 changed files with 6 additions and 2 deletions

View file

@ -200,7 +200,6 @@ class DurationType(types.Float):
query = dbcore.query.DurationQuery
def format(self, value):
# TODO: decide if documenting format_raw_length
if not beets.config['format_raw_length'].get(bool):
return beets.ui.human_seconds_short(value or 0.0)
else:
@ -211,7 +210,7 @@ class DurationType(types.Float):
# Try to format back hh:ss to seconds.
return util.raw_seconds_short(string)
except ValueError:
# Fall back to a plain float..
# Fall back to a plain float.
try:
return float(string)
except ValueError:

View file

@ -26,6 +26,11 @@ New:
singles compilation, "1." See :ref:`not_query`. :bug:`819` :bug:`1728`
* :doc:`/plugins/info`: The plugin now accepts the ``-f/--format`` option for
customizing how items are displayed. :bug:`1737`
* Track length is now displayed as ``M:SS`` by default, instead of displaying
the raw number of seconds. Queries on track length also accept this format:
for example, ``beet list length:5:30..`` will find all your tracks that have
a duration over 5 minutes and 30 seconds. You can toggle this setting off
via the ``format_raw_length`` configuration option. :bug:`1749`
For developers: