1e9bfdb23b6749677e10f731ed4e4c3f45cd4d3f
Build and Push Docker Image / build (push) Successful in 1m4s
MetaMesh Plugin: Anime Detector
A MetaMesh plugin that detects anime content based on keywords, Japanese text, and audio tracks.
Description
This plugin analyzes video files to determine if they are anime content. Detection is based on:
- Fansub group keywords:
[HorribleSubs],[SubsPlease],[Erai-raws], etc. - Japanese text detection: Uses
wanakanalibrary for kana/kanji detection - Audio track language: Checks for Japanese audio streams
- File path: Checks if "anime" is in the path
Metadata Fields
| Field | Description |
|---|---|
anime |
Boolean indicating if content is anime |
titles/jpn/{name} |
"true" — Japanese title (if detected) |
titles/jpl/{name} |
"true" — romaji title |
genres |
Adds "Anime" to genres set |
Dependencies
- Requires
file-info,ffmpeg, andfilename-parserplugins to run first
Configuration
No configuration required.
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Health check |
/manifest |
GET | Plugin manifest |
/configure |
POST | Update configuration |
/process |
POST | Process a file |
Running Locally
npm install
npm run build
npm start
Docker
docker build -t metamesh-plugin-anime-detector .
docker run -p 8080:8080 metamesh-plugin-anime-detector
Environment Variables
| Variable | Default | Description |
|---|---|---|
PORT |
8080 |
HTTP server port |
HOST |
0.0.0.0 |
HTTP server host |
License
MIT
Languages
TypeScript
96.3%
Dockerfile
3.7%