-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.py
24 lines (20 loc) · 833 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
import xbmc
import xbmcgui
import xml.etree.ElementTree as ET
import sys
def main():
dialog = xbmcgui.Dialog()
feeds = [
("Patch .XBE Soundtrack (E:\ to F:\)", "RunScript(Q:\\scripts\\XBESoundtrackPatcher\\patcher.py)"),
("Unpatch .XBE Soundtrack Location (F:\ to E:\)", "RunScript(Q:\\scripts\\XBESoundtrackPatcher\\unpatcher.py)"),
("Copy ST.DB folder (E: to F:)", "RunScript(Q:\\scripts\\XBESoundtrackPatcher\\copy.py)"),
("View ST.DB", "RunScript(Q:\\scripts\\XBESoundtrackPatcher\\viewer.py)"),
]
feed_list = [name for name, _ in feeds]
selected = dialog.select(u"XBE Soundtrack Patcher", feed_list)
if selected >= 0:
name, url = feeds[selected]
if "RunScript" in url:
xbmc.executebuiltin(url)
if __name__ == '__main__':
main()