Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gpenverne/opensubtitles
https://github.com/gpenverne/opensubtitles
letmestream opensubtitles subtitles
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gpenverne/opensubtitles
- Owner: gpenverne
- License: mit
- Created: 2017-01-14T17:49:22.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T10:08:37.000Z (almost 8 years ago)
- Last Synced: 2024-10-07T03:09:27.222Z (about 1 month ago)
- Topics: letmestream, opensubtitles, subtitles
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opensubtitles
This repo provides a service for symfony3 to handle the kminek/open-subtitles client.
This client allow to fetch subtitles from opensubtitles.org## Config/Parameters
Set your parameters.yml with your custom credentials:
```
parameters:
opensubtitles.username: ~
opensubtitles.password: ~
opensubtitles.user_agent: OSTestUserAgentTemp
```Load the bundle from your AppKernel.php file:
```
$bundles = [
new Gpenverne\OpenSubtitlesBundle\OpenSubtitlesBundle(),
...,
];
```## Use it
```
$this->container->get('opensubtitles_api')->getSubtitles('A movie title');
$this->container->get('opensubtitles_api')->getSubtitles(1234); // Search from imdbid
$client = $this->container->get('opensubtitles_api')->getClient(); // Return the kminek/open-subtitles client
```