-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.py
25 lines (21 loc) · 875 Bytes
/
default.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import xbmc
import xbmcgui
import xml.etree.ElementTree as ET
import sys
def main():
dialog = xbmcgui.Dialog()
feeds = [
("Insignia", "RunScript(Q:\\scripts\\Cortana Server Browser\\insignia\\insignia.py)"),
("XLink Kai", "RunScript(Q:\\scripts\\Cortana Server Browser\\xlink\\xlinkkai.py)"),
# ("Cortana Chat", "RunScript(Q:\\scripts\\Cortana Chat\\menu.py)"),
# ("Cortana News", "RunScript(Q:\\scripts\\Cortana Server Browser\\news.py)"),
("Cortana Settings", "RunScript(Q:\\scripts\\Cortana Server Browser\\settings\\settings.py)"),
]
feed_list = [name for name, _ in feeds]
selected = dialog.select(u"Cortana Server Browser", feed_list)
if selected >= 0:
name, url = feeds[selected]
if "RunScript" in url:
xbmc.executebuiltin(url)
if __name__ == '__main__':
main()