03-24-2022, 06:53 AM
(03-23-2022, 07:25 AM)the_bertrum Wrote:(03-23-2022, 04:08 AM)Relocated2007 Wrote: Thanks to @the_bertrum, I made it, however, I read that mpc manual and it si called file with wildcards files names but I am not sure if it accepts directories
You can either put something like this inside the mpdignore file:
That will tell it to ignore everything in that folder.Code:/path/to/ignore/*
Or , simply put an empty mpdignore file in each directory you wish to exclude. Then mdp will ignore any folder with the mpdignore file in it. I use this last method in my collection.
Another alternative of course it put all your music under a single top level folder and just point at that when you mount the source.
Finally, regenerate music library on the Library configuration page wipes the database before rebuilding it if you want a one push solution.
Hmm, I have tried all that you guys wrote and only one thing is working when I unplug the USB drive and regenerate the library I end up with a clean one at least. But putting this
Code:
.mpdignore
in folders doing nothing, I tried empty one and the one with paths no luck at all MoOde is too keen to grab every sound file from my USB-HDD.
From MPD manual:
Code:
The music directory and the database
The “music directory” is where you store your music files. MPD stores all relevant meta information about all songs in its “database”. Whenever you add, modify or remove songs in the music directory, you have to update the database, for example with mpc:
mpc update
Depending on the size of your music collection and the speed of the storage, this can take a while.
To exclude a file from the update, create a file called .mpdignore in its parent directory. Each line of that file may contain a list of shell wildcards. Matching files in the current directory and all subdirectories are excluded.
What are: shell wildcards?