diff options
-rwxr-xr-x | vdrriprecordings.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vdrriprecordings.c b/vdrriprecordings.c index b63a780..fb626fb 100755 --- a/vdrriprecordings.c +++ b/vdrriprecordings.c @@ -29,10 +29,15 @@ cVdrripRecordings::~cVdrripRecordings() { void cVdrripRecordings::ReadRec() { char *cmd = NULL, *buf = NULL; size_t i = 0; +#if APIVERSNUM > 20101 + int colv = strnumcol(cVideoDirectory::Name(), "/"); + asprintf(&cmd, FINDRECCMD, cVideoDirectory::Name()); +#else int colv = strnumcol(VideoDirectory, "/"); asprintf(&cmd, FINDRECCMD, VideoDirectory); +#endif FILE *p = popen(cmd, "r"); if (p) { while (getline(&buf, &i, p) != -1) { |