VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Oct 2023
    Location
    Sri_Lanka
    Search Comp PM
    I’m trying to download a video from Anime.Nexus. It uses an .m3u8 stream, and I think it doesn’t have DRM.
    I tried using yt-dlp with custom headers and browser cookies, but... yeah, it didn’t work. I even asked ChatGPT, but it couldn’t really help either
    If anyone has a bit of time and could explain how to do it I’d really appreciate it.
    Site: anime.nexus
    Example video: https://anime.nexus/watch/998f4f0c-cbbb-4f1d-bb45-6dea4e93f00b

    Thanks in advance
    Quote Quote  
  2. They're opening a Socket.IO connection (via WebSocket) to request tokens for the HLS playlists and each fragment that expire within 1-5 minutes. None of the Socket.IO libraries I tried work and building a parser for these messages is a pain (I was able to connect using a raw WebSocket on Node.JS and C#)
    Bypass HMACs, One-time-tokens and Lic.Wrapping: https://github.com/DevLARLEY/WidevineProxy2
    Quote Quote  
  3. 1. Audio

    yt-dlp --add-header "X-Client-Fingerprint:ec457cee-db50-4b6a-b274-e862d0e98a87" --extractor-args "generic:fragment_query" "https://video.anime.delivery/anime/streams/64c/46b/d57/64c46bd574d30808742981.mkv_5300-0.m3u8?token=1745267410_a9f57d3673488343bef5a3bf60 af6e52edb8a749&requestType=manifest&sessionId=anon _b195222a-cb68-4645-956f-d08764792890" -o audio.mp4

    2. Video

    yt-dlp --add-header "X-Client-Fingerprint:ec457cee-db50-4b6a-b274-e862d0e98a87" --extractor-args "generic:fragment_query" "https://video.anime.delivery/anime/streams/64c/46b/d57/64c46bd574d30808742981.mkv_5300-1.m3u8?token=1745267410_a9f57d3673488343bef5a3bf60 af6e52edb8a749&requestType=manifest&sessionId=anon _b195222a-cb68-4645-956f-d08764792890" -o video.mp4

    3. Merge

    ffmpeg -i video.mp4 -i audio.mp4 -c copy Name.mp4
    Quote Quote  
  4. Like LZAA did, you can just copy any non-master HLS URL from the browser and download it within 5 minutes. This works because tokens for the playlist are also reusable for fragments. Even though they send the fragment URL in a token request, they don't verify whether it actually belongs to a fragment or just a manifest whose token will last 5 minutes instead of less than one.

    Code:
    N_m3u8DL-RE "<URL>" -H "X-Client-Fingerprint: e3e6609c-b319-4b86-93f9-4fff766c8089" --append-url-params
    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!