]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
DVR: add '%g' (genre) formatter to postproc cmd, fixes #3932
authorJaroslav Kysela <perex@perex.cz>
Sat, 13 Aug 2016 06:52:02 +0000 (08:52 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 13 Aug 2016 06:52:06 +0000 (08:52 +0200)
docs/property/postprocessor.md
src/dvr/dvr_rec.c

index 9f21c8380d90e92bf596f39bcf48c3e53f5b9c92..b5668dcceacfa76e9c3133c8d37a26e376f99d1b 100644 (file)
@@ -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
index 84f9e513eefb34da02297dd23fb095b3f1aba691..c2f7515dcd68c38b2808c3c69e5ec4e0c1ba5dd3 100644 (file)
@@ -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 },