Files
Worph 2d5bef71fd
Build and Push Docker Image / build (push) Failing after 14s
align with metadata standard
2026-09-13 15:53:27 +02:00

65 lines
1.6 KiB
Markdown

# 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 `wanakana` library 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`, and `filename-parser` plugins 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
```bash
npm install
npm run build
npm start
```
## Docker
```bash
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