Opened 7 years ago

Closed 6 years ago

#12961 closed Patch - Bug Fix (Won't Fix)

Remove 'The|A|An' prefixes when sorting directory names

Reported by: David Hampton <mythtv@…> Owned by: David Hampton
Priority: minor Milestone: 0.28.2
Component: MythTV - Video Library Version: 0.28.0
Severity: low Keywords:
Cc: Ticket locked: no

Description

The video library code currently ignores the 'The|A|An' prefixes when sorting video names, but it doesn't do so when sorting directory names. Here a patch to ignore these prefixes on directory names as well.

Attachments (3)

prefix_patch (706 bytes) - added by David Hampton <mythtv@…> 7 years ago.
Patch
sort_helper.patch (24.7 KB) - added by David Hampton <mythtv@…> 7 years ago.
New SortHelper? class.
0001-SortHelper-and-store-sort-fields-in-db.patch (159.3 KB) - added by David Hampton <mythtv@…> 7 years ago.
New SortHelper? class. Store sortable field in database.

Download all attachments as: .zip

Change History (8)

Changed 7 years ago by David Hampton <mythtv@…>

Attachment: prefix_patch added

Patch

comment:1 Changed 7 years ago by Stuart Auchterlonie

Milestone: 0.28.10.28.2

Moving remaining open 0.28.1 tickets to 0.28.2

comment:2 Changed 7 years ago by David Hampton <mythtv@…>

Adding a new patch that consolidates most sorting into a single class, adds settings to control the action of this new class, and extends sorting to directory names.

Changed 7 years ago by David Hampton <mythtv@…>

Attachment: sort_helper.patch added

New SortHelper? class.

comment:3 Changed 7 years ago by David Hampton <mythtv@…>

New patch that extends the database schemas to include "sorttitle", "sortsubtitle" and "sortfilname" columns (as per a comment in IRC). These are populated when initially created on the schema upgrade, which can take a little while on a large db. All future object creation will ensure that the sortable title, subtitle and filename fields are populated and written to the database.

Changed 7 years ago by David Hampton <mythtv@…>

New SortHelper? class. Store sortable field in database.

comment:4 Changed 7 years ago by David Hampton

Owner: changed from JYA to David Hampton
Status: newaccepted

comment:5 Changed 6 years ago by Stuart Auchterlonie

Resolution: Won't Fix
Status: acceptedclosed

Closing any remaining tickets for 0.28, if the issue persists, feel free to reopen and align to v29 or master

Note: See TracTickets for help on using tickets.