Beispiel #1
0
 def __init__(self, username=None, password=None, cache=None):
     self.username = username.encode('utf-8')
     self.password = password.encode('utf-8')
     self.base_url = 'http://webshare.cz/'
     if getSettingAsBool('ws_checkssl') is False:
         setSetting('ws_checkssl', 'true')
         res = checkSupportHTTPS(self.base_url)
         setSetting('ws_usessl', 'true' if res is True else 'false')
     if getSettingAsBool('ws_usessl') is True:
         self.base_url = self.base_url.replace('http://', 'https://')
     self.cache = cache
     self.win = xbmcgui.Window(10000)
     self.getToken()
 def __init__(self, username=None, password=None, cache=None):
     self.username = username.encode('utf-8')
     self.password = password.encode('utf-8')
     self.base_url = 'http://webshare.cz/'
     if getSettingAsBool('ws_checkssl') is False:
         setSetting('ws_checkssl', 'true')
         res = checkSupportHTTPS(self.base_url)
         setSetting('ws_usessl', 'true' if res is True else 'false')
     if getSettingAsBool('ws_usessl') is True:
         self.base_url = self.base_url.replace('http://', 'https://')
     self.cache = cache
     self.win = xbmcgui.Window(10000)
     self._userData = None
     self.token = None
     self.getToken()