Kodi Community Forum

Full Version: PVR Add-ons, problem while persisting channels in database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
the PVR Add-ons are not working, neither in the Gotham Stable Release nor the master branch. There is a problem while persisting the channels in the database.
This is the log for the PVR Demo Client: http://xbmclogs.com/show.php?id=199813
I am getting the same problem in my own add-on I am using for testing PVR functionalities.

Code:
(...)
14:11:06 T:1563679608    INFO: PVRChannelGroupInternal - virtual bool PVR::CPVRChannelGroupInternal::AddAndUpdateChannels(const PVR::CPVRChannelGroup&, bool) - added radio channel 'Demo Radio Channel #10'
14:11:06 T:1563679608   DEBUG: CPVRChannelGroup - bool PVR::CPVRChannelGroup::Persist() - persisting channel group 'All radio channels' with 10 channels
14:11:06 T:1563679608   ERROR: SQL: SQL error or missing database
                                            Query: REPLACE INTO channelgroups (idGroup, bIsRadio, iGroupType, sName, iLastWatched) VALUES (1, 1, 1, 'All radio channels', 0)
14:11:06 T:1563679608   ERROR: bool CDatabase::ExecuteQuery(const CStdString&) - failed to execute query 'REPLACE INTO channelgroups (idGroup, bIsRadio, iGroupType, sName, iLastWatched) VALUES (1, 1, 1, 'All radio channels', 0)'
14:11:06 T:1564219208  NOTICE: Thread BackgroundLoader start, auto delete: false
14:11:06 T:1563679608   ERROR: PVRChannelGroup - virtual bool PVR::CPVRChannelGroup::Load() - failed to update channels
I just got the same error while running XBMC in debug for Windows. Using the IPTV-Simple pvr addon.

Any solution to this?
it's confirmed and caused by https://github.com/xbmc/xbmc/commit/4fd2...nt-6303955
but it's not part of any Gotham release, i will push a fix ASAP.
Thank you very much. Big Grin
if it's merged, please delete your TV database.