devsnd / cherrymusic

Stream your own music collection to all your devices! The easy to use free and open-source music streaming server.
http://www.fomori.org/cherrymusic
GNU General Public License v3.0
1.03k stars 189 forks source link

Ignore specific music files when indexing #711

Open seizemeans opened 6 years ago

seizemeans commented 6 years ago

Hi,

I love this project. I apologize if I didn't tag the issue correctly (I didn't tag it at all). This is my first time submitting on git.

I just set up a Cherry server myself. I'm looking to be able to add something to the beginning of a file so that some music in my collection doesn't get served up or indexed (I'm pulling from the server where I store all of my music so I don't want to just remove those files) alternatively flagging it in the browser and the information saved in the home folder just remembering my choices.

I looked elsewhere before submitting. The closest thing I found was the issue #520 to ignore hidden files. I appended a few music folders with a . and updated the library to see if it would hide them. It did not. Am I doing something wrong or is this not an available feature?

I'm not sure if I'm the only one, but there's music that I once enjoyed and might want to reference, but don't want cropping up in the random playlists. Being able to manage these in browser would be great but if that's not available, I'll take manually renaming folders.

Thank you.

tilboerner commented 6 years ago

520 is not implemented (it's open), so adding a . to the beginning of file or folder names won't really help you. (More precisely: the current implementation seems to be inconsistent in how it handles these names, so you might get a mix of desired and undesired results for different parts of CherryMusic.) Please note, however, that the other ticket is about completely ignoring all of these files. Effectively, they won't exist: the server won't know them, and the client won't display or play them. That's likely not what you want.

To me it sounds like you still want to to be able to play and search and see these files, but exclude them from being selected for random playlists. Do I understand you correctly here? Or what does it mean that you still "might want to reference" them?

Anyway, excluding certain files or folders from the random playlist feature seems to be the most useful interpretation. We might come up with a solution here that involves some editing of the config file or placing some text files into your music library. No promises on a timeline, though.

seizemeans commented 6 years ago

Sorry. I was unclear about still wanting to reference them. I don't need to reference them within the Cherry application. I just don't want to have to store these music and audio files elsewhere to have them not appear in the application.

Being able to just de-index items from search or the random playlist is what I'm looking for.

Thanks for your time!

tilboerner commented 6 years ago

Okay, I'll note this down as a request to exclude certain files or folders from:

We'll have to decide where in this list it's most useful to draw the line for a feature like this, but random playlists should be in for sure, because I would imagine most people would have some use for that.