]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
api: Use same name copyright_year for EPG and DVR. (#4594).
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Wed, 22 Nov 2017 13:32:31 +0000 (13:32 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 23 Nov 2017 08:00:38 +0000 (09:00 +0100)
Previously the UI EPG used copyrightYear to be consistent with
the htsp naming convention, however since DVR uses the field
name of copyright_year, it makes sense to rename the UI EPG
component name.

Issue: #4594.

src/api/api_epg.c

index 0654cad442ff030060a86aaeb9cecd71356d6316..94b4a52acc656650e0f407899f7cbaef665c932f 100644 (file)
@@ -188,7 +188,7 @@ api_epg_entry ( epg_broadcast_t *eb, const char *lang, access_t *perm, const cha
     if (ee->first_aired)
       htsmsg_add_s64(m, "first_aired", ee->first_aired);
     if (ee->copyright_year)
-      htsmsg_add_u32(m, "copyrightYear", ee->copyright_year);
+      htsmsg_add_u32(m, "copyright_year", ee->copyright_year);
 
     /* Content Type */
     m2 = NULL;