[mythtv-commits] [MythTV/mythtv] 8f37aa: Services API: Allow images/icons immediately after...

rcrdnalor noreply at github.com
Tue Feb 19 18:31:39 UTC 2019


  Branch: refs/heads/fixes/29
  Home:   https://github.com/MythTV/mythtv
  Commit: 8f37aa3a70763f190872191715a5b97e2f07e9c2
      https://github.com/MythTV/mythtv/commit/8f37aa3a70763f190872191715a5b97e2f07e9c2
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2019-02-19 (Tue, 19 Feb 2019)

  Changed paths:
    M mythtv/libs/libmythservicecontracts/service.h

  Log Message:
  -----------
  Services API: Allow images/icons immediately after BE startup. Fixes #13404

Register <QFileInfo> to QMetaType at backend startup.

Tested on master with:

    curl --header Accept:Application/JSON --output /tmp/preview.out \
        --silent localhost:6544/Content/GetPreviewImage?RecordedId=<validRID>

    curl --header Accept:Application/JSON --output /tmp/icon.out \
        --silent localhost:6544/Guide/GetChannelIcon?ChanId=<validChanID>

    Also, without --header ... for XML responses.

Required because Services need this type already registered. Without this
fix expect:

    JSON: {'': ''}
    XML:  <?xml version="1.0" encoding="UTF-8"?><></>

Thanks Roland

Signed-off-by: Bill Meek <billmeek at mythtv.org>




More information about the mythtv-commits mailing list