[mythtv-commits] [MythTV/mythtv] 260342: Services API: Allow images/icons immediately after...
rcrdnalor
noreply at github.com
Tue Feb 19 02:57:24 UTC 2019
Branch: refs/heads/fixes/30
Home: https://github.com/MythTV/mythtv
Commit: 26034244e8b664f2ae0e74027653293625615a86
https://github.com/MythTV/mythtv/commit/26034244e8b664f2ae0e74027653293625615a86
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>
(cherry picked from commit f7b5fd704be1e75071f8452b669d303ab053a245)
More information about the mythtv-commits
mailing list