Skip to main content

hanime-plugin

This yt-dlp plugin adds support for numerous hentai websites, including but not limited to hanime.tv, hstream.moe and HentaiHaven.

PyPI version

Installation

You can install this package with pip:

pip install --user hanime-plugin

[!WARNING] If a bug is fixed or a feature is added, but not released on PyPI yet, do this instead:

pip install "git+https://github.com/cynthia2006/hanime-plugin.git"

See installing yt-dlp plugins for other methods of installation.

Support

The following is the support matrix of sites and the respective video resolutions offered. To request support for a site, or complain about a broken site, please open a Github issue.

720p 1080p 4K
hstream.moe ✅ ✅ † ❌
oppai.stream ✅ ✅ ‡ ✅ ‡
hentaihaven.com ✅ ‡ ✅ ‡ ❌
hanime.tv ✅ ❌* ❌
ohentai.org ✅ ❌ ❌
hentaimama.io ✅ ❌ ❌
hanime.red ❌ ✅ ❌

* Requires paid membership, and is beyond the scope of this plugin.

† AV1 codec. ‡ VP9 codec.

Examples

Downloading a single video

$ yt-dlp https://hanime.tv/videos/hentai/fuzzy-lips-1

or

$ yt-dlp -f - https://hentaihaven.com/video/soshite-watashi-wa-sensei-ni/episode-1

FAQ

Is Deno still required for hanime.tv?

No, Deno is no longer required for extracting from hanime.tv.

ERROR: Data must be padded to 16 byte boundary in CBC mode

See https://github.com/yt-dlp/yt-dlp/issues/3810 and https://github.com/cynthia2006/hanime-plugin/issues/8

CBC mode is an AES mode used to encrypt HLS streams. Since AES is a symmetric block cipher operating on 128-bit (16 byte) blocks, data is required to align to 16-bit block boundaries for successful decryption. The issue is with yt-dlp's AES decryption routines that does not add PKCS7 padding to ciphertext whose padding has been stripped, and the underlying library pycryptodomex's AES.decrypt() method expects padded data. A workaround is to use the --downloader ffmpeg option.

$ yt-dlp --download-ffmpeg https://hanime.tv/videos/hentai/fuzzy-lips-1

Why support for these sites aren't added to yt-dlp?

yt-dlp has a policy against piracy sites, and hentai sites belong to that category. The original extractor for hanime.tv was a separate tool, unmaintained since 2021. I raised a feature request, but it was declined. I had maintained a fork of yt-dlp with a hanime.tv extractor adapted from the original code, before I lost access to that account. This plugin had initially been based off of that. Support for other sites have been added in late 2025.

Contribution

The hentai sites this plugin scrapes off of are subject to abrupt changes from the upstream without notice, and are highly likely break support. I wouldn't be aware unless an issue ticket is created, and even then I might be slow to respond.

In such a case, follow the workflow described here. It might be somewhat different depending on the enviroment, but the core process is more or less the same.

Metadata

Release files for hanime-plugin 2026.9.27

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hanime-plugin 2026.9.27
File Size Uploaded Provenance Actions
hanime_plugin-2026.9.27.tar.gz 9.7 kB Without provenance Details for hanime_plugin-2026.9.27.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hanime-plugin 2026.9.27
File Interpreter ABI Platform Actions
hanime_plugin-2026.9.27-py3-none-any.whl Python 3 none any Details for hanime_plugin-2026.9.27-py3-none-any.whl

Total release size: 21.4 kB

Release files / hanime_plugin-2026.9.27.tar.gz

Download URL hanime_plugin-2026.9.27.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fb82e27d2e4f10b854a61ca23c577797c9c809e84dffe4606975be05802ff2d1
BLAKE2b-256 checksum
How to use checksums
13c2215ff83ae5835e1d6bdd5f9746708975d6a8bc5ba6a1ebec538991b6e99b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release files / hanime_plugin-2026.9.27-py3-none-any.whl

Download URL hanime_plugin-2026.9.27-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec4f62f04809d880b761ae97720d64b5f21ee1d353d5324b3a3564e53c067309
BLAKE2b-256 checksum
How to use checksums
7f3a577df1d3a8f3dd41b09113cd508814084c17c54d9b3acf0081abf395f0f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Security for hanime-plugin 2026.9.27

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page