12-12-2021, 09:31 AM
Hi
I've been working on a feature 'Collections' that allows you to create views on the music library, which allows you to more easily manage large libraries.
Collections on github
Source code
A collection basically runs one or multiple filters on the complete library returned by MPD, as opposed to the single filter that moOde uses when searching.
Therefor you can think of a collection as a way to do store multiple search commands.
Internally it works by replacing the part of the genFlatList method in playerlib.php that retrieves and filters the filelist from MPD. Instead of running only 1 search/filter over the entire list, it performs multiple.
For now this is enough for my use case, but I see potential to develop this further into better library management feature.
For now, collections can be managed and activated from the configuration menu.
In time I want to be able to select a collection from the main Library dropdown.
Here is a screenshot of the management screen:
The 'Default' collection is the entire library, the 'Some folders' collection will only show the albums in the selected folders in the album list, also any searches will only be performed on those folders.
It is still a work in progress and I am open to suggestions, so I'm asking for input.
Even the term 'collection' may be changed, if someone comes up with a better term.
So let's hear it
I've been working on a feature 'Collections' that allows you to create views on the music library, which allows you to more easily manage large libraries.
Collections on github
Source code
A collection basically runs one or multiple filters on the complete library returned by MPD, as opposed to the single filter that moOde uses when searching.
Therefor you can think of a collection as a way to do store multiple search commands.
Internally it works by replacing the part of the genFlatList method in playerlib.php that retrieves and filters the filelist from MPD. Instead of running only 1 search/filter over the entire list, it performs multiple.
For now this is enough for my use case, but I see potential to develop this further into better library management feature.
For now, collections can be managed and activated from the configuration menu.
In time I want to be able to select a collection from the main Library dropdown.
Here is a screenshot of the management screen:
The 'Default' collection is the entire library, the 'Some folders' collection will only show the albums in the selected folders in the album list, also any searches will only be performed on those folders.
It is still a work in progress and I am open to suggestions, so I'm asking for input.
Even the term 'collection' may be changed, if someone comes up with a better term.
So let's hear it