opensubs
Library to search subtitles from opensubtitles.org
Description
This crate provides a high-level, ergonomic API for searching and retrieving subtitles (only from movies) and related metadata from opensubtitles.org.
It offers both asynchronous and blocking (synchronous) interfaces, with flexible filtering and ordering options.
It uses a web scraper to build the api
Usage
Add this crate to your Cargo.toml:
[]
= "0.1.0"
Enable blocking feature if needed
[]
= { = "0.1.0", = ["blocking"] }
Async Example (default)
use ;
async
Blocking Example (feature "blocking")
use ;
Details
- Searching subtitles from
opensubtitles.orgcould return a list of movies or a list of subtitles of the movie searched (if the text and filter are more exactly). For that matter the Response is an enum. - Here are more examples
Features
- Default async search. Blocking search available too
- Search by url, movie name and/or filters (languages, page, ordering and year)
- Obtain not only info and metadata but also a subtitle download link. Here is an example of download using
wget
Docs
Find all the configuration options in the full documentation.