detain/phlix-plugin-opensubtitles

OpenSubtitles subtitle provider for Phlix — search and download subtitles for movies and TV shows via the OpenSubtitles REST API.

Maintainers

Package info

github.com/detain/phlix-plugin-opensubtitles

Type:phlix-plugin

pkg:composer/detain/phlix-plugin-opensubtitles

Transparency log

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.0 2026-07-11 00:45 UTC

This package is auto-updated.

Last update: 2026-07-12 18:00:25 UTC


README

tests

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:

  1. Log in to your Phlix server as an admin user (users.is_admin = 1).

  2. Browse to /admin/plugins.

  3. Paste this URL into the Install from URL form and submit:

    https://raw.githubusercontent.com/detain/phlix-plugin-opensubtitles/main/plugin.json
    
  4. Configure your OpenSubtitles API key in the plugin settings.

Configuration

Configure these in the Phlix admin Plugins → Configure dialog.

Setting Required Secret Default Description
api_key Yes yes API key for your OpenSubtitles.com consumer (API application).
username No OpenSubtitles.com username. Raises download limits (VIP limits for VIP accounts).
password No yes OpenSubtitles.com password. Only used with the username.
language No en Default subtitle language (ISO 639-1, e.g. en, es, fr).
format No srt Preferred subtitle format (srt, sub, ass, etc.).

Where to get your API key

Create a consumer (API application) on OpenSubtitles.com and copy its API key: opensubtitles.com/en/consumers. Providing your account username/password as well is optional but raises your download quota.

How it works

The plugin implements the Phlix\Shared\Plugin\LifecycleInterface contract and connects to the OpenSubtitles REST API v2:

  1. Login — registers a user agent and obtains a session token
  2. Search — queries subtitles by IMDB ID, filename, or hash
  3. 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.