VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Aug 2023
    Location
    Egypt
    Search Comp PM
    So i already know how to get the mpd and phhs from vdocipher and few other websites

    vdocipher example:
    Code:
         
    url = 'https://dev.vdocipher.com/api/meta/' + video_id
    req = None
    req = requests.get(url, headers=headers)
    resp = req.json()
    return resp['dash']['manifest']
    but i cant do the same for inkryptvideos.com i have tried searching for their api but i couldn't find anything can someone help?
    Quote Quote  
  2. Member
    Join Date
    Aug 2023
    Location
    Egypt
    Search Comp PM
    I found it
    Code:
     
    #mpd
    def get_mpd(video_id , xotp):
        headers = {
            'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
            'origin': 'https://resource.inkryptvideos.com',
            'referer': 'https://resource.inkryptvideos.com/',
            'X-Otp' : f'{xotp}'
        }
        url = 'https://api.inkryptvideos.com/api/s1/v_info/' + video_id
        req = None
        req = requests.get(url, headers=headers)
        req.raise_for_status()  # Raise an exception if the request fails
        resp = req.json()
        storage_hostname = resp['data']['storage_hostname']
        dash_manifest = resp['data']['dash_manifest'].replace("\\", "")
        full_url = f"https://{storage_hostname}/{dash_manifest}"
        return full_url
    the video id should be the v from the token and the x-otp is from the request
    Quote Quote  



Similar Threads

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