detain/phlix-plugin-omdb
Composer 安装命令:
composer require detain/phlix-plugin-omdb
包简介
OMDb metadata provider for Phlix — IMDb/RT/Metascore ratings aggregation for movies and TV.
关键字:
README 文档
README
OMDb metadata provider for Phlix — IMDb/RT/Metascore ratings aggregation for movies and TV.
Queries the OMDb API to enrich Phlix media items with
IMDb ID, Rotten Tomatoes critic rating, and Metascore ratings. Ratings are
stored in the metadata_ratings table and feed into Phlix's rating aggregation
pipeline.
Features
- IMDb ID resolution — search by title + year to resolve the canonical IMDb ID
- Multi-source ratings — captures IMDb, Rotten Tomatoes, and Metascore scores
- Non-blocking HTTP — async HTTP client compatible with Workerman's event loop
- Rate limiting — configurable request throttling to respect OMDb API limits
- Response caching — configurable in-memory cache TTL to reduce API calls
- TLS verification toggle — option to disable SSL verification for self-hosted proxies
- Ratings ingestion — writes ratings directly to
metadata_ratingsfor aggregation
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-omdb/main/plugin.json -
The server downloads the manifest, validates it, runs
composer install --no-dev, and stores a row in thepluginstable. The plugin lands disabled by default. -
Flip the toggle in the table to enable it.
-
Enter your OMDb API key in the plugin settings (get one at http://www.omdbapi.com/apikey.aspx).
Configuration
| Setting | Type | Default | Description |
|---|---|---|---|
enabled |
boolean | false |
Enable the OMDb metadata provider |
api_key |
string | null |
OMDb API key (get at http://www.omdbapi.com/apikey.aspx) |
use_ssl_verification |
boolean | true |
Verify TLS certificates |
cache_ttl_seconds |
integer | 86400 |
Cache TTL in seconds (default: 24h) |
What it does
When enabled, the plugin registers as a MetadataSourceInterface provider. When
the Phlix metadata manager requests details for a media item:
- The plugin receives the search query (title + optional year)
- It queries OMDb's search endpoint to find matching entries
- It fetches full details including ratings for the selected IMDb ID
- Ratings are written to
metadata_ratingsand feed into the rating aggregation
Supported media types
movieseries
Running tests locally
composer install vendor/bin/phpunit vendor/bin/phpstan analyse src --level=9 vendor/bin/phpcs src --standard=PSR12
License
MIT — see LICENSE.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-10