[contrib] add a xbmc plugin that interracts with videoob
This commit is contained in:
parent
d479a86c4d
commit
d1839bfcd4
23 changed files with 1036 additions and 0 deletions
20
contrib/plugin.video.videoobmc/default_test.py
Executable file
20
contrib/plugin.video.videoobmc/default_test.py
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
import resources.lib.test.common_test as common_xbmc
|
||||
import resources.lib.constants as constants
|
||||
|
||||
from resources.lib.actions import actions
|
||||
|
||||
print sys.argv
|
||||
if len(sys.argv) < 2:
|
||||
actions[constants.DISPLAY_MENU]()._do()
|
||||
else:
|
||||
params = common_xbmc.parse_params(sys.argv[1])
|
||||
#print params
|
||||
action = params.get("action")
|
||||
if (action):
|
||||
actions[action]()._do(params)
|
||||
else:
|
||||
common_xbmc.display_error(" ARGV Nothing done.. verify params " + repr(params))
|
||||
Loading…
Add table
Add a link
Reference in a new issue