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
Search



Donate

Rockbox Technical Forums


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

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  %fe tag which returns the number of tracks in current directory
« previous next »
  • Print
Pages: [1]

Author Topic: %fe tag which returns the number of tracks in current directory  (Read 412 times)

Offline basalt

  • Member
  • *
  • Posts: 1
%fe tag which returns the number of tracks in current directory
« 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:
  • Find the first directory of the file being played
  • Find the extension of the file currently being played
  • Count the number of files with that extension in that directory
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.

Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  %fe tag which returns the number of tracks in current directory
 

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

Page created in 0.033 seconds with 21 queries.