Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: basalt on February 16, 2022, 01:47:49 PM

Title: %fe tag which returns the number of tracks in current directory
Post by: basalt on February 16, 2022, 01:47:49 PM
I think that it would be useful to add a File Info type tag, let's say %fe, which returns the number of tracks in a directory. Specifically, it would:
The purpose of this is to function as a "number of tracks in album" tag. This is useful if you are playing a directory containing several albums; presently, you can use %pe to give you the total length of the playlist, but you still don't know where you are in a particular album. It is also useful if you have queued up multiple audiobooks or lectures, for the same reason - you might spend a long time in a particular directory.

If it is already possible to do this in a roundabout manner, that would be sufficient also.

If I were coding something like this is a bash script, I don't think I'd have too much difficulty, but I don't know about C.