is there an undocumented reset pvr database function?
#1
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
Reply
#2
I answered my own question

use sqlite3 and create a script.. can u please delete this post mod.
Reply
#3
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.
Reply
#4
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.
Reply
#5
I'll be calling it from within my PVR addon..
Reply
#6
you must use the callback methods that are available here: https://github.com/opdenkamp/xbmc-pvr-ad...pvr.h#L241
no ResetDatabase() calls will be allowed in to make an add-on work
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.
Reply
#7
TriggerEPGUpdate and TriggerChannelUpdate it is then...
Reply

Logout Mark Read Team Forum Stats Members Help
is there an undocumented reset pvr database function?0