dir2list

generate a list of files shuffled by directory
git clone anongit@rnpnr.xyz:dir2list.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 2c068b63d25ea98a49b068df276dc42c9233d30a
Parent: 80dd69a19731fe1abd3fac5a40f74f76f006a4b0
Author: 0x766F6964
Date:   Sun,  3 May 2020 13:22:53 -0600

add config.def.h

Diffstat:
Aconfig.def.h | 5+++++
Mmpvdir2list.c | 2++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -0,0 +1,5 @@ +/* the top level dir to traverse */ +const char *topdir = "/mnt/media"; + +/* the list of valid filetypes to include in the created list */ +const char *filetypes[] = { "mkv", "mp4", NULL }; diff --git a/mpvdir2list.c b/mpvdir2list.c @@ -6,6 +6,8 @@ #include <string.h> #include <time.h> +#include "config.h" + struct node { char path[PATH_MAX]; /* Path containing media files */ int a; /* Applied */