groovebasin icon indicating copy to clipboard operation
groovebasin copied to clipboard

folder structure view of library

Open felixcode opened this issue 13 years ago • 11 comments

current view of library is not very suitable for library that music tags/info isn't very good. so maybe it's better to also provide a folder structure view from which we can choose files to play directly.

felixcode avatar Oct 21 '12 13:10 felixcode

Good idea. This is now planned.

andrewrk avatar Oct 23 '12 03:10 andrewrk

Note that until this is fixed, the library search feature also matches full file names, so if your library is organized by folder you can still type in an album or artist.

andrewrk avatar Oct 24 '12 00:10 andrewrk

We're one step closer to realizing this feature with e8fa0e83a32b072f2f204b9122464dd362a7778c

andrewrk avatar Feb 26 '14 09:02 andrewrk

At present it is implemented?

Killerbb avatar Mar 05 '14 15:03 Killerbb

No. The closest you can get to this is:

  • typing a file name in the filter box.
  • using the MPD protocol

andrewrk avatar Mar 05 '14 15:03 andrewrk

I just want to add my vote in for this feature. I have about 130GB of music, and very little has proper tags, but it is neatly arranged in folders. I currently use subsonic which displays the folder structure. To me, it's the one feature that blocks me from switching to groovebasin entirely.

Other than that, it's a fantastic tool! Thanks a lot for writing it.

jvehent avatar Nov 26 '14 18:11 jvehent

Hey guys and @andrewrk, would love to see this feature, too, because going to your library and finding things is pretty damn hard. You only can use this little:

selection_010

Features I vote for:

  • folder view (this is the way still many people organize their music)
  • and better sorting view for library (show albums first, ...)

Thanks for Groove Basin! It's pretty unique!!

Greets

Nytrm

MartNytrm avatar May 22 '15 17:05 MartNytrm

Album view is #170

andrewrk avatar May 22 '15 20:05 andrewrk

I'm thinking about switching my player system over to this, but folder / file view is what i have to have before I can do this. Do you have any insights on how this should best be implemented so that I can have a look at getting to work on it?

nubjub avatar Nov 17 '15 20:11 nubjub

Yes. Much of the work is already done via the mpd protocol support. The server has an in memory index of the current file structure that it keeps up to date. What's left to be done is communicating this information to the client and updating the client code to use this information.

When I get home I'll elaborate on the details. You can also find me in the #libgroove freenode irc channel for live support.

andrewrk avatar Nov 17 '15 20:11 andrewrk

In lib/player.js look at dbFilesByPath as well as dirs. These objects are kept up to date and contain the file system hierarchy.

In lib/player_server.js you will have to add a new subscription or modify an existing one to communicate the file system hierarchy to the client. Also take a look at the Protocol Specification for inspiration - whatever mechanism you add will have to be added to the protocol spec as well.

Once you have the server communicating data to the client, you'll have to edit src/client/app.js and probably src/public/index.html.

I hope that helps. This feature is a big undertaking; don't feel bad if it's too hard or you don't have time. I'm happy to help and answer any questions you have.

andrewrk avatar Nov 17 '15 22:11 andrewrk