コード例 #1
0
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
コード例 #2
0
ファイル: addon.py プロジェクト: kodinerds/repo
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
コード例 #3
0
def index(master, token):
    index = helper.index(client.get_data(master))
    if index:
        return helper.add_param(index, token)
    return master
コード例 #4
0
ファイル: addon.py プロジェクト: kodinerds/repo
def index(master, token):
    index = helper.index(client.get_data(master))
    if index:
        return helper.add_param(index, token)
    return master