123456789101112131415161718 |
- # -*- coding: utf-8 -*-
- import os,os.path,sys, urllib, traceback
- from kodiswift import Plugin, ListItem, storage
- from kodiswift import xbmc, xbmcgui, xbmcplugin, xbmcvfs, CLI_MODE
- #from resources.lib import ContentSources, util
- #sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),"resources","lib","sources"))
- import playstreamproxy
- #monitor = xbmc.Monitor()
-
-
- plugin = Plugin()
- plugin.load_addon_settings()
- port = plugin.get_setting("general_port",int)
- start_proxy = plugin.get_setting("general_proxy",bool)
- host = "localhost"
- if start_proxy:
- plugin.notify("Starting playstreamproxy","Info",10000, xbmcgui.NOTIFICATION_INFO)
- playstreamproxy.start(host, port)
|