Linux Reset PVR Database command line
#1
Hi
I am looking for the xbmc command that can allow me to Reset The PVR Database (we can find this option in XBMC settings > Live TV > General > Reset The PVR Database)
I want to execute this command with my remote control when pairing with a key

Thank you for your help
Reply
#2
I have to ask, why would you want to do that?
Reply
#3
Because some time my channel list is empty and I need to that to import the list again instead of rebooting
My PVR client is simple IPTV for information
And when I update my channel list file it is not updated automatcly in live TV and I want to update it manually

Thanks
Reply
#4
Any help guys ?
Reply
#5
You probably have to make sure the list is updated when XBMC starts.
Reply
#6
It looks like it's available through JSON-RPC:

http://pastebin.com/RVvBjrfp
line 3088

Maybe a python script with curl doing a post?
Reply
#7
hi live4ever thanks for the help
now i am trying a python script but it is my first one and i have some issues with it

here is the script

#! /usr/bin/env python
import xbmc
chanscan = '{"jsonrpc": 2.0", "method": "PVR.Scan", "params": [], "type": "string"}'
xbmc.executeJSONRPC ( chanscan )

but i have the following error

OpenELEC:/tmp # python test.py
Traceback (most recent call last):
File "test.py", line 4, in <module>
xbmc.executeJSONRPC ( chanscan )
AttributeError: 'module' object has no attribute 'executeJSONRPC'

i have the same error on a geexbox os

does someone have any idea on how i can fix my script

thanks
Reply
#8
any ideas guys


thks
Reply
#9
Not sure if you ever found the answer to this but the following worked for me:

xbmc-send --host=10.0.0.36 --port=9777 --action="startpvrmanager"

Just replace with your IP address.

p.s. You can then set it as a favourite via advanced launcher and link it to a keypress.
Reply

Logout Mark Read Team Forum Stats Members Help
Reset PVR Database command line0