Skip to content

Filtering tracks in library by length should handle abbreviations like lastplayed #7370

Open
@residuum

Description

Before posting

Please follow the steps below and check the boxes with [x] once you did the step.

  • I checked the issue tracker for similar issues
  • I checked the changelog if the issue is already resolved
  • I tried the latest Clementine build from here

System information

Please provide information about your system and the version of Clementine used.

  • Operating System: Debian testing/unstable
  • Clementine version: 1.4 rc2

Expected behaviour / actual behaviour

When filtering tracks in the library, it is possible to search for tracks played within a specified time with the syntax lastplayed:<1h30m. It is also possible to filter tracks by length, but not with the abbreviations for minutes, hours, seconds etc. So one must search for nanoseconds now, e.g. length:<60000000000 returns tracks shorter than 1 minute in the library, but length:<1m would be nice for that.

Currently the abbreviations are only filtered in date columns

} else if (Song::kDateColumns.contains(columntoken)) {

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions