detain/phlix-plugin-opensubtitles
Composer 安装命令:
composer require detain/phlix-plugin-opensubtitles
包简介
OpenSubtitles subtitle provider for Phlix — search and download subtitles for movies and TV shows via the OpenSubtitles REST API.
README 文档
README
OpenSubtitles subtitle-provider plugin for Phlix — search and download subtitles for movies and TV shows via the OpenSubtitles REST API.
What it does
This plugin integrates OpenSubtitles into the Phlix subtitle pipeline. It allows searching for subtitles by:
- IMDB ID — find subtitles for a specific movie/TV show
- Filename — extract media info from a filename and search matching subtitles
- File hash — match subtitles using the OpenSubtitles hash algorithm
Install
The plugin is unsigned by design. Install via the Phlix admin UI:
-
Log in to your Phlix server as an admin user (
users.is_admin = 1). -
Browse to
/admin/plugins. -
Paste this URL into the Install from URL form and submit:
https://raw.githubusercontent.com/detain/phlix-plugin-opensubtitles/main/plugin.json -
Configure your OpenSubtitles API key in the plugin settings.
Configuration
| Setting | Required | Default | Description |
|---|---|---|---|
api_key |
Yes | — | OpenSubtitles API key (user agent token) |
username |
No | — | OpenSubtitles username (for logged-in downloads) |
password |
No | — | OpenSubtitles password (for logged-in downloads) |
language |
No | en |
Default subtitle language (ISO 639-1) |
format |
No | srt |
Preferred subtitle format (srt, sub, ass, etc.) |
How it works
The plugin implements the Phlix\Shared\Plugin\LifecycleInterface contract and connects to the OpenSubtitles REST API v2:
- Login — registers a user agent and obtains a session token
- Search — queries subtitles by IMDB ID, filename, or hash
- Download — fetches the subtitle file and feeds it into Phlix's subtitle pipeline
API
The OpenSubtitles REST API is documented at opensubtitles.com.
License
MIT — see LICENSE.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-10