`%r` | Number of errors during recording | 0
`%R` | Number of data errors during recording | 6
`%i` | Streams (comma separated) | H264,AC3,TELETEXT
+`%Z` | Comment | A string
*Example usage*
`%d` | Program description | News and stories…
`%S` | Start time stamp of recording, UNIX epoch | 1224421200
`%E` | Stop time stamp of recording, UNIX epoch | 1224426600
+`%Z` | Comment | A string
*Example usage*
return dvr_do_prefix(id, fmt, buf, tmp, tmplen);
}
+static const char *
+dvr_sub_comment(const char *id, const char *fmt, const void *aux, char *tmp, size_t tmplen)
+{
+ return dvr_do_prefix(id, fmt, ((dvr_entry_t *)aux)->de_comment, tmp, tmplen);
+}
+
static htsstr_substitute_t dvr_subs_entry[] = {
{ .id = "?t", .getval = dvr_sub_title },
{ .id = "? t", .getval = dvr_sub_title },
{ .id = "E", .getval = dvr_sub_stop },
{ .id = "r", .getval = dvr_sub_errors },
{ .id = "R", .getval = dvr_sub_data_errors },
+ { .id = "Z", .getval = dvr_sub_comment },
{ .id = NULL, .getval = NULL }
};