VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 32 of 32
  1. i dont know @hizbf want what script, since it had given by Frieren, it is a python script, you can just copy and change chanel to 'video_id'. video_id is episode id you can see in the video url, and in browser develop mode(F12), fileter the endpoint 'https://user-api.mytvsuper.com/v1/video/checkout' by keyword 'checkout', click it and see request headers, you will find the api_token, it should a jwt token, looks like eyJhxxxxxxxxxxxxxxxxxxx long string:

    Code:
    #!/usr/bin/env python
    import requests
    import json
    
    
    def get_mytvsuper(video_id, api_token):
    
        headers = {
            'Accept': 'application/json',
            'Authorization': 'Bearer ' + api_token,
            'Accept-Language': 'zh-CN,zh-Hans;q=0.9',
            'Host': 'user-api.mytvsuper.com',
            'Origin': 'https://www.mytvsuper.com',
            'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.2 Safari/605.1.15',
            'Referer': 'https://www.mytvsuper.com/',
            'X-Forwarded-For': '210.6.4.148'  # 香港原生IP  210.6.4.148
        }
    
        params = {
            'platform': 'android_tv',
            'video_id': video_id,
        }
    
        url = 'https://user-api.mytvsuper.com/v1/video/checkout'
        try:
            response = requests.get(url, headers=headers, params=params)
            response.raise_for_status()
        except requests.exceptions.RequestException as e:
            return f'请求失败: {e}'
    
        response_json = response.json()
        profiles = response_json.get('profiles', [])
    
        for profile in profiles:
            if profile.get('quality') == 'high':
                play_url = profile.get('streaming_path')
                break
    
        print(play_url)
    
    
    video_id = input('\ninput video ID: ')
    api_token = input('\ninput API TOKEN: ')
    get_mytvsuper(video_id, api_token)
    Quote Quote  
  2. Originally Posted by shellcmd View Post
    i dont know @hizbf want what script, since it had given by Frieren, it is a python script, you can just copy and change chanel to 'video_id'. video_id is episode id you can see in the video url, and in browser develop mode(F12), fileter the endpoint 'https://user-api.mytvsuper.com/v1/video/checkout' by keyword 'checkout', click it and see request headers, you will find the api_token, it should a jwt token, looks like eyJhxxxxxxxxxxxxxxxxxxx long string:

    Code:
    #!/usr/bin/env python
    import requests
    import json
    
    
    def get_mytvsuper(video_id, api_token):
    
        headers = {
            'Accept': 'application/json',
            'Authorization': 'Bearer ' + api_token,
            'Accept-Language': 'zh-CN,zh-Hans;q=0.9',
            'Host': 'user-api.mytvsuper.com',
            'Origin': 'https://www.mytvsuper.com',
            'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.2 Safari/605.1.15',
            'Referer': 'https://www.mytvsuper.com/',
            'X-Forwarded-For': '210.6.4.148'  # 香港原生IP  210.6.4.148
        }
    
        params = {
            'platform': 'android_tv',
            'video_id': video_id,
        }
    
        url = 'https://user-api.mytvsuper.com/v1/video/checkout'
        try:
            response = requests.get(url, headers=headers, params=params)
            response.raise_for_status()
        except requests.exceptions.RequestException as e:
            return f'请求失败: {e}'
    
        response_json = response.json()
        profiles = response_json.get('profiles', [])
    
        for profile in profiles:
            if profile.get('quality') == 'high':
                play_url = profile.get('streaming_path')
                break
    
        print(play_url)
    
    
    video_id = input('\ninput video ID: ')
    api_token = input('\ninput API TOKEN: ')
    get_mytvsuper(video_id, api_token)
    Hello, I would like a script to obtain the mainfest URL and key for mytvsuper TV Live and VOD through the TV API
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!