2016-01-27, 01:03 AM
Or, in layman's terms, why isn't the Original Air Date data for program listings in NextPVR's EPG database being transmitted over to the Kodi/XBMC client?
I rely heavily on being able to see the original air date of programs, to the point that I've modified Kodi's Confluence skin to be able to display it in its PVR Guide Info Dialog. However, at the moment it only displays the epoch date for all programs. I know that NextPVR is successfully reading that data from the XMLTV file because I've also modified NextPVR's skin to also display the original air date of programs in its Event Listing Popup.
I've brought up this issue before in the Kodi/XBMC forum:
http://forums.nextpvr.com/showthread.php...n-Kodi-EPG
However, since it received no attention, I decided to take the matter into my own hands, and look through the code for NextPVR's Kodi/XBMC client until I found the problem, and then bring it up again in this forum to ensure that it gets properly fixed.
I finally found the reason for the issue on line 497 (as of the time of this post) of pvrclient-nextpvr.cpp:
https://github.com/kodi-pvr/pvr.nextpvr/...extpvr.cpp
Specifically, within the cPVRClientNextPVR::GetEpg function, the firstAired property of the EPG_TAG broadcast variable is being set to zero before being passed onto Kodi via the PVR->TransferEpgEntry function, which explains why it is displayed as the epoch date in my modification of Kodi's Confluence Skin.
How much work would it take to implement this feature now and properly set the Original Air Date field in the Kodi/XMBC client?
Is it just a matter of modifying the front-end client plugin to read the parse the date string and convert it into seconds since the epoch, or does the back-end also have to be modified to transmit the Original Air Date data in the first place?
For that matter, if it's not too much work, could the corresponding data for the other unset properties of the EPG_TAG broadcast variable also be transmitted from NextPVR's EPG Database and set in the client if the data is available from the XMLTV file?
I ask because in the process of learning how to modify the Kodi/XBMC Confluence Skin to display the Original Air Date, I also learned that several of the currently unset EPG_TAG properties can also be displayed in Kodi/XBMC skins. By coding these properties to be transmitted and properly set in the client, you could avoid further complaints from those who code and use Kodi/XBMC skins designed to display this data.
At the very least, could you please code the Original Air Date data to be transmitted and set in the Kodi/XBMC plugin? This data is often available for most program listings in a typical XMLTV file, and I would appreciate being able to have access to it in Kodi, and I thank you very much in advance for taking the time to improve the NextPVR plugin for Kodi/XBMC.
After all, with Kodi version 16 Jarvis about to be officially released, it seems like a good time to be updating and improving the plugin anyway, so I'm hoping that you'll add this improvement to it, and I once again thank you in advance for doing so.
I rely heavily on being able to see the original air date of programs, to the point that I've modified Kodi's Confluence skin to be able to display it in its PVR Guide Info Dialog. However, at the moment it only displays the epoch date for all programs. I know that NextPVR is successfully reading that data from the XMLTV file because I've also modified NextPVR's skin to also display the original air date of programs in its Event Listing Popup.
I've brought up this issue before in the Kodi/XBMC forum:
http://forums.nextpvr.com/showthread.php...n-Kodi-EPG
However, since it received no attention, I decided to take the matter into my own hands, and look through the code for NextPVR's Kodi/XBMC client until I found the problem, and then bring it up again in this forum to ensure that it gets properly fixed.
I finally found the reason for the issue on line 497 (as of the time of this post) of pvrclient-nextpvr.cpp:
https://github.com/kodi-pvr/pvr.nextpvr/...extpvr.cpp
Specifically, within the cPVRClientNextPVR::GetEpg function, the firstAired property of the EPG_TAG broadcast variable is being set to zero before being passed onto Kodi via the PVR->TransferEpgEntry function, which explains why it is displayed as the epoch date in my modification of Kodi's Confluence Skin.
How much work would it take to implement this feature now and properly set the Original Air Date field in the Kodi/XMBC client?
Is it just a matter of modifying the front-end client plugin to read the parse the date string and convert it into seconds since the epoch, or does the back-end also have to be modified to transmit the Original Air Date data in the first place?
For that matter, if it's not too much work, could the corresponding data for the other unset properties of the EPG_TAG broadcast variable also be transmitted from NextPVR's EPG Database and set in the client if the data is available from the XMLTV file?
I ask because in the process of learning how to modify the Kodi/XBMC Confluence Skin to display the Original Air Date, I also learned that several of the currently unset EPG_TAG properties can also be displayed in Kodi/XBMC skins. By coding these properties to be transmitted and properly set in the client, you could avoid further complaints from those who code and use Kodi/XBMC skins designed to display this data.
At the very least, could you please code the Original Air Date data to be transmitted and set in the Kodi/XBMC plugin? This data is often available for most program listings in a typical XMLTV file, and I would appreciate being able to have access to it in Kodi, and I thank you very much in advance for taking the time to improve the NextPVR plugin for Kodi/XBMC.
After all, with Kodi version 16 Jarvis about to be officially released, it seems like a good time to be updating and improving the plugin anyway, so I'm hoping that you'll add this improvement to it, and I once again thank you in advance for doing so.