by wander_homer · 5y ago · 0 comments
For example my audio player does just that, e.g. `%artist%/(%year%) %album%/%tracknumber%.%title%`
Progressively "drilling down" is super low-hanging fruit with regards to tag-based organization, it's seriously neglected.
I also agree that the lack of drill-down on tag-based organisation ... kills about 99.9996% of the value. It's sufficiently valuable that you'd expect this to be part of basic implementation libraries by now.
A tagging system is flat by default.
Though that makes rendering the tree somewhat easier...
1. genre 2. artist 3. album 4. title
or
1. genre 3. album 4. title
or just
1. title
or even less useful ones like
1. title 2. album
Magic?
Note that in the case of artist -> album -> title, there is in fact an actual explicit hierarchy that's being reconstructed. In the case of conceptual tags ... any such structure is far less evidently defined.
song_1: genre_1, album_1, title_1
song_2: genre_2, album_2, title_2
song_3: genre_1, album_3, title_3
Now when the user wants a tree with the first level being genre and the second being title, the player just goes through all the know genres to build the first level with two items (genre_1 and genre_2), then for the genre_1 sub-tree it generates a list of all songs with genre_1 and displays their title, ... So you end up with: genre_1
|-> title_1
|-> title_3
genre_2
|-> title_2
Those are basically just normal database lookups.Edit: In fact since the player allows for multi-value tags, items can even appear multiple times in the tree, e.g. when a song has multiple artists.