Allow sorting on duration and size in the media browser selection list

Issue #499 resolved
prl created an issue

Allow the selection list in the media browser (MEDIA from live TV) to be sorted by duration (ascending/descending) and file size (ascending/descending).

See issue #498 for how this enhancement interacts with column display in the media browser selection list.

Comments (2)

  1. Peter Urbanec

    Fix issue #499: Allow sorting on duration and file size columns

    This commit also requires the commits in branches Fix-issue-499 in the easy-skin-aus-hd and skin-full-metal-wizard repositories.

    [MovieSelection]

    Add "auto" option to config.movielist.showlengths and config.movielist.showsizes, and make "auto" the default. This will allow the duration and size columns to be automatically displayed when they are sort keys.

    Add sort menu entries for: SORT_DURATION_ALPHA (By duration, then by name) SORT_DURATIONREV_ALPHA (By reverse duration, then by name) SORT_SIZE_ALPHA (By file size, then by name) SORT_SIZEREV_ALPHA (By reverse file size, then by name)

    [MovieList]

    Add impementations of: SORT_DURATION_ALPHA (By duration, then by name) SORT_DURATIONREV_ALPHA (By reverse duration, then by name) SORT_SIZE_ALPHA (By file size, then by name) SORT_SIZEREV_ALPHA (By reverse file size, then by name)

    They also sort with date oldest->newest if the other keys are equal.

    Adjust the values of TRASHSORT_SHOWRECORD and TRASHSORT_SHOWDELETE to accommodate the new sort orders.

    Add data structures & code to test whether a column is currently a sort key.

    → <<cset 9852b3890fb5>>

  2. Log in to comment