Filter some formats to mpd

General Discussion about MPD – anything that doesn't fit in the other MPD forums.
Post Reply
Sogeking
Posts: 7
Joined: February 8th, 2018, 2:09 pm

Filter some formats to mpd

Post by Sogeking » September 13th, 2019, 2:48 pm

Hi everyone,
is there any possibility to filter (cut ot) some formats from mpd?
To avoid for example mp4 files when i do "mpd ls | mpd add". I want the mpd to ignore .mp4 files.
Thanks a lot

max
Forum team
Posts: 953
Joined: January 15th, 2013, 3:43 pm

Re: Filter some formats to mpd

Post by max » September 13th, 2019, 4:00 pm

Never do `mpc ls|mpc add`. This is bloated, error prone and fragile.

You can write `*.mp4` in your `.mpdignore` and MPD will ignore those files during database update.

Sogeking
Posts: 7
Joined: February 8th, 2018, 2:09 pm

Re: Filter some formats to mpd

Post by Sogeking » September 18th, 2019, 8:12 am

Thanks a lot for the answer and advice!

Post Reply