azatoth / minidlna

MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully compliant with DLNA/UPnP-AV clients. It is developed by a NETGEAR employee for the ReadyNAS product line
http://sourceforge.net/projects/minidlna/
Other
294 stars 78 forks source link

Feature request | Exclude some folders. #20

Open x09 opened 4 years ago

x09 commented 4 years ago

Hi,

My minidlna.conf have a few media_dir options something like this

media_dir=V,/opt/Torrents media_dir=V,/home/anton/Downloads

But i want exclude few folders from /home/anton/Downloads and I suggest add exclude_folder options to config file. Full path, or mask, or regexp - not important..

exclude_folder=/home/anton/Downloads/TempVideo or exclude_folder=/home/anton/Downloads/temp*

jwakely commented 3 months ago

Another possibility would be to use the "type" field of media_dir to exclude a dir, e.g. type X could mean exclude:

media_dir=V,/opt/Torrents media_dir=V,/home/anton/Downloads media_dir=X,/home/anton/Downloads/TempVideo

Or an empty type could be used to mean "none of the types, no audio, no photos, no videos", i.e. media_dir=,/path/to/exclude but that seems a bit subtle and too "clever".