def __init__(self): self.http_lib = vplayCommon.Http() self.session = None if not self.__settings__.getSetting( "username") or not self.__settings__.getSetting("pwd"): self.__login__.login() self.scrap = vplayScraper.Scrap()
def __init__(self): self.http_lib = vplayCommon.Http() self.scrap = vplayScraper.Scrap() self.random = random.random() #try: # cur_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'resources') # cur_dir = os.path.join(cur_dir, 'subtitles') # if os.path.isdir(cur_dir) is False: # os.makedirs(cur_dir) # self.subs_dir = cur_dir #except: tmp_dir = xbmc.translatePath("special://temp") subs = os.path.join(tmp_dir, 'plugin.video.vplay_subtitles') if os.path.isdir(subs) is False: os.makedirs(subs) self.subs_dir = subs
def __init__(self): self.http_lib = vplayCommon.Http() self.session = None self.username = None self.pwd = None
def __init__(self): self.http_lib = vplayCommon.Http() self.response = None