Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Database/tagnavi : Only show track title while ordering based on track number ?
« previous next »
  • Print
Pages: [1] 2

Author Topic: Database/tagnavi : Only show track title while ordering based on track number ?  (Read 2567 times)

Offline eriolloan

  • Member
  • *
  • Posts: 6
Database/tagnavi : Only show track title while ordering based on track number ?
« on: March 17, 2024, 07:59:46 PM »
Hi !

Is there a way to indicate I want tracks to be ordered based on the track number without it being displayed ?

I'm fiddling with tagnavi but I can't seem to find how to only show the title while retaining the track ordering, it defaults to alphabetical ordering...

Can I silently filter in the %format or alternatively hide parts of the produced string ?
Does some hiding markup exist like say :
Code: [Select]
"\%d \%02d %s" discnum tracknum title
if "\" meant the value is to be parsed when ordering but not to be shown ?

...I'm not even sure the sorting must happen in the %format... help ?

____

To give some context from a user and (admittedly pedantic) UX designer point of view :
  • I don't want to see disc and track numbers when browsing the database. After tagging my tracks and naming the files appropriately, I don't want to concern myself with these values anymore, espacially when enjoying my music. Now it's up to the db to do some magic with it for me.
  • The way it displays feels unnecessarily heavy and really distracting. The varying widths of the added characters mean the track titles rarely lign up so the list is harder to parse at a glance.
  • And of course alphabetical sorting is not an option for track listing. XD
____

I searched here the best I could but I could only find a few related issues (same question about ordering except in playlists and files). If I missed it, can you redirect me to the appropriate thread ?

Thanks.
Logged

Offline eriolloan

  • Member
  • *
  • Posts: 6
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #1 on: March 17, 2024, 09:00:59 PM »
Sorry, I guess I was not reading the doc properly, I found out I can use %strip to do just that  ::)

%strip = "<n>" removes n characters from the beginning of the display string. This can be used to hide initial field(s) included only for sorting.
Logged

Offline eriolloan

  • Member
  • *
  • Posts: 6
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #2 on: March 18, 2024, 08:15:00 AM »
I'm not there yet.

Using these formats for tracks it works perfectly for mp3 files, but when selecting a folder containig FLAC files, rockbox freezes completely....

Code: [Select]
%format "fmt_title"           "%s (%s)" basename filename ? title == "<Untagged>"
%format "fmt_title"           "%d%02d%s" discnum tracknum title ? discnum > "0" %strip = "3"
%format "fmt_title"           "%02d%s" tracknum title ? tracknum > "0" %strip = "2"
%format "fmt_title"           "%s" title
%format "fmt_alphanum_title"  "%s" title

edit: Should I open another thread for this problem ?
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1192
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #3 on: March 18, 2024, 10:22:19 PM »
Likely there is a particular track hanging the player maybe try building the db with the plugin and see where it hangs

(assuming you are using a recent dev version)
Logged

Offline eriolloan

  • Member
  • *
  • Posts: 6
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #4 on: March 19, 2024, 06:45:16 AM »
Thanks for your answer.

I reinstalled rockbox (ae01ea7fd9-240223) at some point and added only one album in each format... same behaviour.

Each time I modified tagnavi or added a playlist, I used both "Update Now" and "Initialize now" in the contextual menu of the DB section (Is this what rou're refering to as the plugin or is there something I missed browsing Plugins/Applications ?)
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1192
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #5 on: March 19, 2024, 07:51:02 AM »
plugins/apps/db_commit

its basically a verbose version of the commit code that will hopefully say why its crashing

if not try to get a single track that does it or if you must a whole album so I can try and repro it
Logged

Offline eriolloan

  • Member
  • *
  • Posts: 6
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #6 on: March 19, 2024, 09:11:41 AM »
Ok... this is getting weirder : The format is not the problem. 

I downloaded a mp3 album to test more thoroughly. (I had previously used mp3 albums where I had only one track, most of my full albums being flac.)
Albums with more than a few tracks will radomly freeze the device, but not consistently after reboot.. some will some won't...
So it might not be related to a specific number of tracks. With further testing I ruled out track with 2 digits, 10 tracks or more as a cause, and the last track being present as possible causes.

I tried with numerous albums by various artists so you can propably reproduce with your own collection.

Might be worth mentioning that I'm focusing on the crashes but the tracks are still ordered alphabetically XD
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1192
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #7 on: March 19, 2024, 09:26:15 AM »
As far as priorities go crashes are going to get more attention than features ATM and for the foreseeable future unless we (the royal we) get some more time or more devs
Logged

Offline eriolloan

  • Member
  • *
  • Posts: 6
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #8 on: March 19, 2024, 09:59:34 AM »
I get that completely.
Even with low priority, I'll open a bug report mentioning the freezes.

Thank you for your time  :D
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1192
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #9 on: March 24, 2024, 11:40:32 AM »
I found a bug in the basename filter for the tagnav should be in the nightlies
Let me know if it fixes the issue..
Logged

Offline The_Logod

  • Member
  • *
  • Posts: 3
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #10 on: April 07, 2025, 02:48:32 PM »
Quote from: eriolloan on March 18, 2024, 08:15:00 AM
I'm not there yet.

Using these formats for tracks it works perfectly for mp3 files, but when selecting a folder containig FLAC files, rockbox freezes completely....

Code: [Select]
%format "fmt_title"           "%s (%s)" basename filename ? title == "<Untagged>"
%format "fmt_title"           "%d%02d%s" discnum tracknum title ? discnum > "0" %strip = "3"
%format "fmt_title"           "%02d%s" tracknum title ? tracknum > "0" %strip = "2"
%format "fmt_title"           "%s" title
%format "fmt_alphanum_title"  "%s" title

edit: Should I open another thread for this problem ?

Hi - I am working on the same topic and couldn't get it to work with your config; removing the digits in front will just cause Rockbox to sort again alphabetically. Afaik there is now no working method to sort by tracknumber when it's not visible?!
Logged

Offline bahus

  • Member
  • *
  • Posts: 208
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #11 on: April 07, 2025, 04:36:24 PM »
Quote from: The_Logod on April 07, 2025, 02:48:32 PM
couldn't get it to work with your config; removing the digits in front will just cause Rockbox to sort again alphabetically. Afaik there is now no working method to sort by tracknumber when it's not visible?!
Did you use the exact config file provided? You shouldn't simply remove digits - you should use %strip as in example.
Logged

Offline The_Logod

  • Member
  • *
  • Posts: 3
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #12 on: April 09, 2025, 03:04:19 PM »
I did use the config as posted here, incl. %strip.
However, I did put it into a tagnavi_user.config file instead of tagnavi_custom.config, using tagnavi_custom.config caused the iPod to crash on startup and not boot normally anymore.
Logged

Offline bahus

  • Member
  • *
  • Posts: 208
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #13 on: April 10, 2025, 06:42:39 AM »
Does sorting with %strip work properly in 3.15? Could be a regression.
Logged

Offline bahus

  • Member
  • *
  • Posts: 208
Re: Database/tagnavi : Only show track title while ordering based on track number ?
« Reply #14 on: April 10, 2025, 08:14:09 AM »
1) $strip should be specified before conditions:
Code: [Select]
%format "fmt_title"           "%02d%s" tracknum title  %strip = "2" ? tracknum > "0"
2) I checked the code - %strip and %sort implementation doesn't work correctly with multiple conditional format strings. So, for the following example:

Code: [Select]
%format "fmt_title"           "%02d%s" tracknum title  %strip = "2" ? tracknum > "0"
%format "fmt_title"           "%s" title

Tracknum condition will be checked when finding format string, but %strip will be taken simply from the latest "fmt_title" (it's not specified, so it's handled as 0)

So %strip will work if you leave the only "fmt_title" format string. Something like:
 
Code: [Select]
%format "fmt_title"           "%02d%s" tracknum title  %strip = "2"
« Last Edit: April 10, 2025, 11:29:24 AM by bahus »
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Database/tagnavi : Only show track title while ordering based on track number ?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.127 seconds with 22 queries.