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

rcrdnalor noreply at github.com
Mon Feb 18 19:57:05 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: f7b5fd704be1e75071f8452b669d303ab053a245
      https://github.com/MythTV/mythtv/commit/f7b5fd704be1e75071f8452b669d303ab053a245
  Author: Roland Ernst <rcrernst at gmail.com>
  Date:   2019-02-18 (Mon, 18 Feb 2019)

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

  Log Message:
  -----------
  Services API: Allow images/icons immediately after BE startup. Refs #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