talking about hanime API since i’m bored let’s see if i can play with the new version

mpv https://weeb.hanime.tv/weeb-api-cache/api/v8/m3u8s/$(curl https://hanime.tv/videos/hentai/TITLE-HERE | grep -oP '(?<=\<script\>window\.__NUXT__=)\{.*\}(?=;\<\/script\>)' | jq '.state.data.video.videos_manifest.servers[].streams | sort_by(.width) | .[-1].id').m3u8

now apparently the header requirement is gone, hmm

@caskd I started looking into it and it's not. If you don't have premium it doesn't give you the url to the 1080p m3u8.

@matrix you can just replace the id in that with the id for the 1080p one and it works
@caskd @matrix i found a python script that does this but i'd like to see if there's a better way
https://pypi.org/project/hanimetv/
Follow

@pernia @caskd Well technically not. I'm trying to write a Python API wrapper and than the downloader.

· · Web · 1 · 0 · 1

@pernia @caskd Fuck it. I quit. This guy already did most of the work.

@matrix @caskd you could still fix the download speed, its at like the guest speed for some reason
@caskd @matrix how hard would it be to make your way able to download whole brands?
@pernia @matrix not really that hard, my scripting skills are pretty gud since i live in the shell
@pernia @matrix sure, just lemme finish current stuff i got to do

@pernia
Looking at the source code, it should work the same. Maybe a limit of YTDL, but I still got 50Mbps internet usage when I tried it so I would say it is unlimited.
@caskd

@matrix @caskd ah damn its probably a problem on my end them :(
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.