Import code
This commit is contained in:
1 parent
9b88a6ecde
commit
054d387e37
20 files changed
+2348
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
import xbmc
|
||||
from resources.lib.proxy import Proxy
|
||||
from resources.lib.addon import *
|
||||
from resources.lib.log import LOG
|
||||
from resources.lib.cache import Cache
|
||||
|
||||
if __name__ == '__main__':
|
||||
LOG('Service started')
|
||||
proxy = Proxy()
|
||||
proxy.start()
|
||||
LOG('proxy_address: {}'.format(proxy.proxy_address))
|
||||
cache = Cache(profile_dir)
|
||||
cache.save_file('proxy.conf', proxy.proxy_address)
|
||||
|
||||
monitor = xbmc.Monitor()
|
||||
while not monitor.abortRequested():
|
||||
if monitor.waitForAbort(1):
|
||||
break
|
||||
|
||||
proxy.stop()
|
||||
Reference in new issue
Block a user