Use dot instead of dash for date and time postfixes in filenames

This commit is contained in:
Andreas Öman 2010-03-16 23:05:22 +00:00
parent 6876fc6afe
commit 4a5009fbda

View file

@ -84,12 +84,12 @@ dvr_make_title(char *output, size_t outlen, dvr_entry_t *de)
if(dvr_flags & DVR_DATE_IN_TITLE) {
strftime(buf, sizeof(buf), "%F", &tm);
snprintf(output + strlen(output), outlen - strlen(output), "-%s", buf);
snprintf(output + strlen(output), outlen - strlen(output), ".%s", buf);
}
if(dvr_flags & DVR_TIME_IN_TITLE) {
strftime(buf, sizeof(buf), "%H-%M", &tm);
snprintf(output + strlen(output), outlen - strlen(output), "-%s", buf);
snprintf(output + strlen(output), outlen - strlen(output), ".%s", buf);
}
if(dvr_flags & DVR_EPISODE_IN_TITLE) {