forked from SIMKL/script.simkl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.py
More file actions
32 lines (25 loc) · 736 Bytes
/
Copy pathservice.py
File metadata and controls
32 lines (25 loc) · 736 Bytes
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
26
27
28
29
30
31
32
#!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
NOT LICENSED YET
Creator: David Davó <david@ddavo.me>
'''
import sys
import xbmc
from resources.lib.utils import log
from resources.lib.utils import system_lock
from resources.lib import engine
from resources.lib import api_simkl
from resources.lib import events
if __name__ == "__main__":
system_lock("SimklTrackerRun", 5)
log("dir = " + str(xbmc.translatePath("special://home")))
log("Python Version = " + str(sys.version))
log("args = " + str(sys.argv))
api = api_simkl.Simkl()
monitor = events.Monitor(api=api)
player = engine.Player(api=api)
while not monitor.abortRequested():
if monitor.waitForAbort(90):
break
sys.exit(0)