2019-09-20, 06:12 PM
nogoer Wrote:What do you mean by "original air date and new episode flag and signifcance fields are available in the API to Kodi"? Is there a way a skin can query npvr api and pull the data in? Im new to addon coding in kodi but if this is possible it would be the easiest method to get the data i want into a skin.NextPVR is sending original air date, first run flag, significance (premiere, finale etc) data to Kodi. The addon doesn't currently use this data though. We hadn't explicitly added this ourselves because Kodi didn't seem to use it, and there was no way for us to test it.
Ive been trying all sorts of methods to get the kodi epg updated for first air date but they all end in some sort of brick wall either on the npvr addon side not populating data or the kodi side not having a method to update epg data besides a direct db edit.
The cPVRClientNextPVR::GetEpg() function in pvrclient-nextpvr.cpp already pulls most of the info out of this response, like name/description/subtitle, start/end time, etc. Someone would just need to add the few lines of code to pull out the additional <firstrun>, <original> and <significance> from the xml, and set them in the Kodi structures.
Quote: The only method i can see to make a work around for myself is to basically gank bits of the npvr addon and build my own addon that replicates the transferEpgEntry functionality but with real data from the npvr API. Your addon though is a serious piece of code and im not familiar with python very well as im a C#/sql developer mostly.The way it's supposed to work, is you'd create yourself a GitHub account, you'd fork the https://github.com/kodi-pvr/pvr.nextpvr repository, make the changes, then submit a pull request (which is effectively asking someone to merge your changes into the master set of files)