Posts: 2
Joined: Mar 2013
Reputation:
0
I know there is a builtin function to start - restart pvr manager (StartPVRManager) but just wondering if there is an undocumented builtin function to reset the pvr database.
I'd like to reset the pvr database by adding a button within a skin I am designing for example. I want to make it easier to reset the database without having to go to LiveTV settings menu.
Does anyone have any suggestions?
bashirag
Posts: 2
Joined: Mar 2013
Reputation:
0
I answered my own question
use sqlite3 and create a script.. can u please delete this post mod.
Posts: 83
Joined: Feb 2009
Reputation:
0
2013-07-22, 19:20
(This post was last modified: 2013-07-22, 19:24 by greco.)
I'm in the process of making a c++ addon that will handle this task calling CPVRManager::ResetDatabase(bool bResetEPGOnly /* = false */) from the PVR Manager. Hopefully it will work giving me seemless integration. It will check the hash of the m3u channel file and xmltv to see if there were updates and launch the reset automatically. The service addon will sleep every 60 minutes.
Posts: 2,274
Joined: Feb 2009
Reputation:
30
opdenkamp
Retired Team-Kodi Member
Posts: 2,274
no, you will not be able to call ResetDatabase() from add-ons, as there is no API call implemented for this, and if you think you need it in an add-on, then you must revisit your design, because it is flawed.
opdenkamp / dushmaniac
xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]
Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.
If you like my work, please consider donating to me and/or Team XBMC.
Posts: 83
Joined: Feb 2009
Reputation:
0
I'll be calling it from within my PVR addon..
Posts: 83
Joined: Feb 2009
Reputation:
0
TriggerEPGUpdate and TriggerChannelUpdate it is then...