VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. hey there in this website uses very uncommon hls video delivery method that ive never seen and here is why looking for some help from the peoples

    website : http://ap.lk/
    login : with a google account

    after login there have some free study packs (go to store and scroll little bit) active a free one and play a video

    i tried yt-dlp and N_m3u8dl-RE gets error 403
    Stream Detector detected but failed
    also there ive tried usualy ways like with headers and cookies but no-luck

    thank you
    Quote Quote  
  2. Originally Posted by LZAA View Post
    Need access.
    There are have multiple free lessons in the store

    first visit https://ap.lk/dashboard and login with a google account
    then visit https://ap.lk/store and scroll down to bottom you will find some lessons for free

    here some lessons free to enroll

    https://ap.lk/buy/poduratawa-lesson-pack-new
    https://ap.lk/buy/special-pack-flwdiscussion-march
    https://ap.lk/buy/special-pack-2026specialcoverup-march
    Quote Quote  
  3. It was a pain to log in because I had to brute force some weird card number but I got it working.
    The HLS URL can only be used once and is embedded inside the site's HTML.
    To use the code below, enter your video URL from the address bar and the value of your sessionid cookie.
    Code:
    import re
    
    import requests
    
    if __name__ == '__main__':
        response = requests.get(
            url='https://ap.lk/watch-video/<VIDEO ID>',
            cookies={
               'sessionid': '<sessionid token value>'
            }
        )
    
        print(response.status_code)
    
        hls_url = re.search(
            r"'(https://video.ap.lk/stream/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})'",
            response.text
        ).group(1)
    
        auth_token = re.search(
            r"'([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})'",
            response.text
        ).group(1)
    
        print(hls_url)
        print(auth_token)
    
        print(f"N_m3u8DL-RE \"{hls_url}\" -H \"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0\" -H \"SD-Analyze: {auth_token}\" -H \"Origin: https://ap.lk\"")
    Bypass HMACs, One-time-tokens and Lic.Wrapping: https://github.com/DevLARLEY/WidevineProxy2
    Quote Quote  



Similar Threads

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