Author Topic: Track sub-grouping by Folder name and showing the top-level folder name  (Read 901 times)

beesee

  • Newbie
  • *
  • Posts: 19
Hi,

 On my computer I have two folders containing the same audiobook read by two different narrators. I included the names of the narrators in the folder names and I tagged/named them as the same album in MusicBee. However, since one of the audiobook folders contains several subfolders (CD1, CD2 ..) I have this layout in my Album and Tracks view in the main panel (sorting and track sub-grouping both by Folder Name):
 
 Mansfield Park Gibson
  Track 1
  Track 2
  ...
 
 CD 1
  Track 1
  Track 2
  ...
 
 CD 2
  Track 1
  Track 2
  ...
 
The problem is that the top-level folder name for the audiobook containing subfolders is not shown, in this case Mansfield Park Savage. Obviously, I'd like to have the top-level folder name shown in the list and have this layout:

   Mansfield Park Gibson
    Track 1
    Track 2
    ...
 
   Mansfield Park Savage

   CD 1
    Track 1
    Track 2
    ...
 
   CD 2
    Track 1
    Track 2
    ...

Thank you!

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
The problem is that the top-level folder name for the audiobook containing subfolders is not shown, in this case Mansfield Park Savage.
In the layout customization settings which you can find on the Album and Tracks header menu:
Are you able to see what field MusicBee is using to display these "top-level folder names"?
If so, then it's just a matter of correcting the tag value on the Mansfield Park Savage tracks, or displaying a virtual tag which shows what you want in place of the aforementioned field.

I have a feeling I misunderstood you though, so a screenshot of your MusicBee screen would help in that case.
Strength and Honour (2025)

beesee

  • Newbie
  • *
  • Posts: 19
Thank you for your reply Mayibongwe!  I use the track sub-grouping feature under the Views Configuration for Albums and Tracks to add headings for folders included under the same album. I simply select Folder Name in the drop-down menu and I get tracks neatly separated by the names of the physical folders on my computer. As expected, the headings will be added for the folders immediately containing the tracks, which is fine. The problem is that the heading for the top-level folder containing subfolders is not added and I get this layout https://imgur.com/a/WzB4iL1

The folders CD1, CD2... are subfolders in the folder Mansfield Park Savage, and obviously I'd like this folder name to be shown at the beginning of the list of subfolders (marked by the red arrow in the screenshot)

I understand that this is the expected behaviour for the track sub-grouping feature but I don't know any other way to combine two separate folders under the same album name in a similar way. Here's my Album and Tracks configuration https://imgur.com/a/1a9t7EO
Last Edit: June 04, 2024, 08:40:17 AM by beesee

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
Ah, I get it now, thanks for the elaboration.
Can you post the folder structure of your music files? A virtual tag will be able to help here.

Are your folders structured in a hierarchy like:

...\Music\Album Artist\Album\Disc 1\Track_1.mp3
...\Music\Album Artist\Album\Track_2.mp3

Where Album represents the top-level folder name you want?
Strength and Honour (2025)

beesee

  • Newbie
  • *
  • Posts: 19
Thank you for the help Mayibongwe! The folder Mansfield Park Gibson contains only the mp3 files belonging to this album, with no subfolders.
The folder Mansfield Park Savage contains three subfolders, as shown in the screenshot https://imgur.com/a/npJ0EZe . The folders CD1, CD2 and CD3 contain the respective mp3 files, and no further subfolders.

Last Edit: June 04, 2024, 09:06:40 AM by beesee

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
What's the name of the folder directly above the Mansfield Park folders?

...\abc\Mansfield Park Gibson
...\abc\Mansfield Park Savage\CD1

I need the name of 'abc' there.
Strength and Honour (2025)

beesee

  • Newbie
  • *
  • Posts: 19
The folder Mansfield Park Savage has the hierarchy ...Audiobooks\Classics\Mansfield Park Savage\cd1\Chapter 1.mp3  etc., while Mansfield Park Gibson has simply ..Audiobooks\Classics\Mansfield Park Gibson\Chapter 1.mp3 etc

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
Instead of displaying the field <Folder Name>, can you try this virtual tag:

$RxReplace($Replace(<Path>,\, ~ ),".*?Classics\s?~?(.*)\s~","$1")
Strength and Honour (2025)

beesee

  • Newbie
  • *
  • Posts: 19
Thank you again Mayibongwe!  I've tried the virtual tag and I got the top folder name attached to each of the subfolder names, like this https://imgur.com/a/fpYMxn9 .  This is better than not having the folder name shown anywhere, but still not the perfect solution. Ideally, the folder name should be inserted in a separate line above the following list of subfolders.

Mayibongwe

  • Sr. Member
  • ****
  • Posts: 1733
  • Heal The World
Ideally, the folder name should be inserted in a separate line above the following list of subfolders.
Yeah, and that additional grouping level would need to be a wishlist item.
Although to be honest, I doubt we would get any more sub-groupings on that layout in addition to what we already have (that's not to say you can't try your luck).
Strength and Honour (2025)

beesee

  • Newbie
  • *
  • Posts: 19
I have only a few audiobooks in different narrator versions so it doesn't bother me particularly to not have the proper heading for one of them. I'm getting older but not that old not to be able to remember those few books without having their name spelled out :) . Thank you for the help again, I appreciate it.