]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
DVR: rec - for time strings, replace : with -
authorJaroslav Kysela <perex@perex.cz>
Sun, 31 May 2015 21:19:30 +0000 (23:19 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 31 May 2015 21:19:30 +0000 (23:19 +0200)
src/dvr/dvr_rec.c

index e69bcb9f8fb38757fca3a63a4840bbb33c7a575e..caef45e12bd8ca89d2e8f7acccfe8d92f99c017a 100644 (file)
@@ -346,10 +346,13 @@ static htsstr_substitute_t dvr_subs_entry[] = {
 
 static const char *dvr_sub_strftime(const char *id, const void *aux)
 {
-  char fid[8];
+  char fid[8], *p;
   static char buf[40];
   snprintf(fid, sizeof(fid), "%%%s", id);
   strftime(buf, sizeof(buf), fid, (struct tm *)aux);
+  for (p = buf; *p; p++)
+    if (*p == ':')
+      *p = '-';
   return dvr_clean_directory_separator(buf);
 }