Hi Mike,
here is a relevant snippet of the debug-log to help fixing the "TV channels" bug:
Code:
07:39:24.285 T:1053815712 DEBUG: Skin Helper Simplecache --> Initialized
07:39:24.285 T:1053815712 DEBUG: Metadata and Artwork module --> Initialized
07:39:24.286 T:1053815712 DEBUG: Skin Helper Simplecache --> Initialized
07:39:24.289 T:1053815712 DEBUG: Skin Helper Widgets --> MEDIATYPE: pvr - ACTION: channels -- no cache, quering kodi api to get items - CHECKSUM: action.channelsepisodes_enable_specials.Falsegroup_episodes.Falsehide_watched.Truelimit.25mediatype.pvrnext_inprogress_only.Truereload.20170407053808
07:39:24.374 T:1053815712 DEBUG: Metadata and Artwork module --> {"error":{"code":-32602,"data":{"method":"PVR.GetChannels","stack":{"message":"Received value is null","name":"channelgroupid","type":["string","integer"]}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
07:39:24.374 T:1053815712 DEBUG: Metadata and Artwork module --> {'params': {'channelgroupid': None, 'properties': ['broadcastnow', 'channeltype', 'hidden', 'locked', 'lastplayed', 'thumbnail', 'channel'], 'limits': {'start': 0, 'end': 25}}, 'jsonrpc': '2.0', 'method': 'PVR.GetChannels', 'id': 1}
07:39:24.401 T:1006629792 DEBUG: -->Python Interpreter Initialized<--
07:39:24.401 T:1006629792 DEBUG: CPythonInvoker(283, /storage/.kodi/addons/service.library.data.provider/plugin.py): the source file to load is "/storage/.kodi/addons/service.library.data.provider/plugin.py"
07:39:24.403 T:1006629792 DEBUG: CPythonInvoker(283, /storage/.kodi/addons/service.library.data.provider/plugin.py): setting the Python path to /storage/.kodi/addons/service.library.data.provider:/storage/.kodi/addons/script.module.routing/lib:/storage/.kodi/addons/script.module.simplejson/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0
07:39:24.403 T:1006629792 DEBUG: CPythonInvoker(283, /storage/.kodi/addons/service.library.data.provider/plugin.py): entering source directory /storage/.kodi/addons/service.library.data.provider
07:39:24.404 T:1006629792 DEBUG: CPythonInvoker(283, /storage/.kodi/addons/service.library.data.provider/plugin.py): instantiating addon using automatically obtained id of "service.library.data.provider" dependent on version 2.25.0 of the xbmc.python api
The ""Received value is null" so Kodi does get no channels the request.
Here is the same with "Recently played TV Channels". Here is no JSON-request, instead a "builtin" request from Kodi
Code:
07:47:18.584 T:1962623744 DEBUG: CDirectoryProvider[plugin://service.library.data.provider?type=randomsongs&reload=20170407053350]: refreshing..
07:47:18.584 T:1962623744 DEBUG: CDirectoryProvider[plugin://script.skin.helper.widgets/?action=recordings&mediatype=pvr&reload=20170407054319]: refreshing..
07:47:18.584 T:1962623744 DEBUG: CDirectoryProvider[addons://sources/video]: refreshing..
07:47:18.585 T:1020261280 DEBUG: CPVRDirectory::GetDirectory(pvr://channels/tv/*?view=lastplayed)
07:47:18.585 T:1141896096 DEBUG: StartScript - calling plugin Library Data Provider('plugin://service.library.data.provider/','173','?type=randomalbums&reload=20170407053350')
07:47:18.586 T:1045427104 DEBUG: Thread JobWorker start, auto delete: true
07:47:18.587 T:1028649888 DEBUG: Thread LanguageInvoker start, auto delete: false
07:47:18.587 T:1028649888 INFO: initializing python engine.
07:47:18.587 T:1028649888 DEBUG: CPythonInvoker(291, /storage/.kodi/addons/service.library.data.provider/plugin.py): start processing
Maybe the request for "TV Channels" should be "pvr://channels/tv/*"?