This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12132 - tagnavi: Support "basename" in formats and conditions; replace <Untagged> in track views
Attached to Project:
Rockbox
Opened by sideral (sideral) - Sunday, 29 May 2011, 00:20 GMT+2
Last edited by sideral (sideral) - Thursday, 04 August 2011, 14:38 GMT+2
Opened by sideral (sideral) - Sunday, 29 May 2011, 00:20 GMT+2
Last edited by sideral (sideral) - Thursday, 04 August 2011, 14:38 GMT+2
|
DetailsThis patch set (in patch 0006) adds support to the tagnavi.config syntax for using a file's basename (path name without directories) in display formats and conditions.
Patch 0007 changes the database's default title format to display a file's basename rather than "<Untagged>" if no title tag is present in the file. In passing, patch 0001 fixes two bugs introduced with r26192 ( * The translation was done too early: before the tagnavi format clauses were checked. This prevented comparisons against "<Untagged>" when a non-English translation was active. * The code overwrote the buffer containing the constant string "<Untagged>" with the translation. This is neither safe nor necessary: The result pointer simply can be swapped with a pointer to the translation. Patches 0002–0005 contain various minor DB cleanups the other patches rely on. (I'll commit the fixes and cleanups separately from the basename feature after some testing.) Patches relative to r29928. |
This task depends upon
I appreciate you taking on the basname/untagged issue (well, one of my peeves as it were).
Also renovated the format_str() code a bit (improved structuring, removed code duplication) and increased the maximum length of a printf conversion specification to 20 characters.
Rebased patch to r29975 (required because of r29937 /
FS#12136).The binsize increase struck me as a bit large, so I went and optimized it a bit – see attached patch. Also reduces stack usage quite a bit.