From: Jaroslav Kysela Date: Sat, 13 Aug 2016 06:52:02 +0000 (+0200) Subject: DVR: add '%g' (genre) formatter to postproc cmd, fixes #3932 X-Git-Tag: v4.2.1~389 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e6c00932c6b2b0d9e9812b92cd0d28550bfc661;p=thirdparty%2Ftvheadend.git DVR: add '%g' (genre) formatter to postproc cmd, fixes #3932 --- diff --git a/docs/property/postprocessor.md b/docs/property/postprocessor.md index 9f21c8380..b5668dcce 100644 --- a/docs/property/postprocessor.md +++ b/docs/property/postprocessor.md @@ -17,6 +17,7 @@ Format | Description | Example value `%s` | Program subtitle | Afternoon `%p` | Program episode | S02.E07 `%d` | Program description | News and stories… +`%g` | Program content type | Current affairs `%e` | Error message | Aborted by user `%S` | Start time stamp of recording, UNIX epoch | 1224421200 `%E` | Stop time stamp of recording, UNIX epoch | 1224426600 diff --git a/src/dvr/dvr_rec.c b/src/dvr/dvr_rec.c index 84f9e513e..c2f7515dc 100644 --- a/src/dvr/dvr_rec.c +++ b/src/dvr/dvr_rec.c @@ -560,6 +560,7 @@ static htsstr_substitute_t dvr_subs_postproc_entry[] = { { .id = "s", .getval = dvr_sub_subtitle }, { .id = "p", .getval = dvr_sub_episode }, { .id = "d", .getval = dvr_sub_description }, + { .id = "g", .getval = dvr_sub_genre }, { .id = "c", .getval = dvr_sub_channel }, { .id = "e", .getval = dvr_sub_last_error }, { .id = "C", .getval = dvr_sub_creator },