[mythtv] DVR API Services changes between 0.27 & 0.28
Bill Meek
keemllib at gmail.com
Tue Sep 6 14:14:29 UTC 2016
On 09/06/2016 07:55 AM, Dan Wilga wrote:
Good points, some more info added:
> For the sake of anyone reading this thread, while upgrading my MythPause script to 0.28, I discovered these things:
>
> - The /Frontend endpoint now requires a POST. 0.27 will accept either GET or POST, so it's easiest to just use POST for both versions.
Not all FE endpoints.
There was an effort to correct all endpoints that add/change/
update things to use a POST. But for the Frontend case:
https://www.mythtv.org/wiki/Frontend_Service
> - The return value from /Myth/GetSetting has changed. Previously, data was returned in a nested array. In 0.28, it is in a top-level element
> called String.
GetSettingList returns the 'old', while GetSetting more logically only returns
a single setting. Link in the next comment.
> - /Myth/GetSetting and /Myth/PutSetting will not function without a HostName parameter. In 0.27 it could be omitted.
With GetSetting, the HostName can be left off and the
hostname of the backend will be used automatically.
It honors 'non-default' values in <LocalHostName>...</LocalHostName>
from config.xml too.
However, if the setting is NULL, then HostName must
be set to _GLOBAL_.
https://www.mythtv.org/wiki/Myth_Service#GetSetting
--
Bill
More information about the mythtv-dev
mailing list