hanime-plugin
This yt-dlp plugin adds support for numerous hentai websites, including but not limited to hanime.tv, hstream.moe and HentaiHaven.
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.
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 sites are subject to abrupt changes without any notice whatsoever, and I might be unaware of them or be slow to respond. In such a case, fork this repository, clone locally, commit changes, push, then create a pull request with sufficient description about what it changes and its intended use case.
The following is an example workflow showcasing a typical development cycle, and it might be slightly different depending on the environment you work with.
-
Clone the forked repository.
$ git clone git@github.com:your-username/hanime-plugin.git # or, $ git clone https://github.com/your-username/hanime-plugin
-
Ensure Flit is installed. Note that,
python3might have to be replaced withpython.$ python3 -m pip install flit $ python3 -m venv venv $ source venv/bin/activate $ flit install --only-deps
-
Export the
PYTHONPATHvariable including the current directory. This is required for yt-dlp to register the plugins in theyt_dlp_plugins/extractorsdirectory.$ export PYTHONPATH="$PWD:$PYTHONPATH"
-
Edit the code with an editor/IDE of your choice, and check periodically with yt-dlp.
-
Stage and commit the changes, then push into your forked repository.
-
Create a pull request.
The development of a new plugin or fixing an existing plugin requires a certain degree of knowledge about the internals of yt-dlp's architecture, especially of the methods available in the InfoExtractor class. It is suggested to read the official developer documentation first, then use the plugin code in this repository as a reference to obtain a general idea of problem at hand.
Metadata
Release files for hanime-plugin 2026.8.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hanime_plugin-2026.8.22.tar.gz | 10.7 kB | Without provenance | Details for hanime_plugin-2026.8.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hanime_plugin-2026.8.22-py3-none-any.whl | Python 3 | none | any | Details for hanime_plugin-2026.8.22-py3-none-any.whl |
Total release size: 22.7 kB
Release files / hanime_plugin-2026.8.22.tar.gz
| Download URL | hanime_plugin-2026.8.22.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
253e979664d777b8ce5fad31d3681ade4d3c6ac8a2372c13c234f7929ed4eb3e
|
|
BLAKE2b-256 checksum How to use checksums |
b9543fe682f8e8bdfb212d9956813623eb59cccdc16121055370343ccb321f93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Release files / hanime_plugin-2026.8.22-py3-none-any.whl
| Download URL | hanime_plugin-2026.8.22-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e49ffcf22943e782b62f6cc4f0fc148fde7c80b8c4988b10cb4ed08fbc68fad
|
|
BLAKE2b-256 checksum How to use checksums |
cd381f5247b37a02add2ca3bf3d9316725f70fbc0cb7b911c36d8d7f0726309b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.34.2
|
Security for hanime-plugin 2026.8.22
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.