def master_token(): if not 'hdnea' in id and '.m3u8' in id: token = helper.token(client.token()) return helper.add_param(id, token), token elif 'hdnea' in id and 'm3u8' in id: spl = id.split('?') if len(spl) == 2: return id, spl[1] else: return None, None
def master_token(): if not "hdnea" in id and ".m3u8" in id: token = helper.token(client.token()) return helper.add_param(id, token), token elif "hdnea" in id and "m3u8" in id: spl = id.split("?") if len(spl) == 2: return id, spl[1] else: return None, None
def index(master, token): index = helper.index(client.get_data(master)) if index: return helper.add_param(index, token) return master