using the new API (opensubtitles.com) I've searched for a subtitle:
Code: Select all
GET /api/v1/subtitles?moviehash=33f47a2a8defb13a
[
{
"id": "398431",
"type": "subtitle",
"attributes": {
"subtitle_id": "398431",
"language": "en",
"download_count": 248381,
"new_download_count": 34,
"hearing_impaired": true,
"hd": false,
"fps": 25.0,
"votes": 4,
"ratings": 9.0,
"from_trusted": false,
"foreign_parts_only": false,
"upload_date": "2005-03-01T00:00:00Z",
"ai_translated": false,
"machine_translated": false,
"release": "Johnny.English.DVDRip.XviD-DMT",
"comments": "from Johnny.English.DVDRip.XviD-DMT checked for the usual rip-errors :) if you like the sub please V0te :D",
"legacy_subtitle_id": 4450864,
"uploader": {
"uploader_id": 18589,
"name": "K0bo (a)",
"rank": "Silver Member"
},
"feature_details": {
"feature_id": 516561,
"feature_type": "Movie",
"year": 2003,
"title": "Johnny English",
"movie_name": "2003 - Johnny English",
"imdb_id": 274166,
"tmdb_id": 9486
},
"url": "https://www.opensubtitles.com/en/subtitles/legacy/4450864",
"related_links": [
{
"label": "All subtitles for Johnny English",
"url": "https://www.opensubtitles.com/en/movies/2003-johnny-english",
"img_url": "https://s9.opensubtitles.com/features/1/6/5/516561.jpg"
}
],
"files": [
{
"file_id": 436692,
"cd_number": 1,
"file_name": "dmt-je_hearing_impaired"
}
],
"moviehash_match": true
}
},
{
"id": "736339",
"type": "subtitle",
"attributes": {
"subtitle_id": "736339",
"language": "en",
"download_count": 96058,
"new_download_count": 363,
"hearing_impaired": false,
"hd": true,
"fps": 24.0,
"votes": 2,
"ratings": 5.5,
"from_trusted": true,
"foreign_parts_only": false,
"upload_date": "2012-12-09T16:08:04Z",
"ai_translated": false,
"machine_translated": false,
"release": "Three.Steps.Above.Heaven.2010.720p.BluRay.x264.DTS-HDChina",
"comments": "Fixed Some Errors.",
"legacy_subtitle_id": 4737285,
"uploader": {
"uploader_id": 41719,
"name": "vtn1354",
"rank": "Trusted member"
},
"feature_details": {
"feature_id": 566390,
"feature_type": "Movie",
"year": 2010,
"title": "Three Steps Above Heaven",
"movie_name": "2010 - Three Steps Above Heaven",
"imdb_id": 1648216,
"tmdb_id": 61979
},
"url": "https://www.opensubtitles.com/en/subtitles/legacy/4737285",
"related_links": [
{
"label": "All subtitles for Three Steps Above Heaven",
"url": "https://www.opensubtitles.com/en/movies/2010-three-steps-above-heaven",
"img_url": "https://s9.opensubtitles.com/features/0/9/3/566390.jpg"
}
],
"files": [
{
"file_id": 809775,
"cd_number": 1,
"file_name": "Three.Steps.Above.Heaven.2010.720p.BluRay.x264.DTS-HDChina"
}
],
"moviehash_match": true
}
},
...
]
In addition, calling download on the first match (398431):
Code: Select all
POST /api/v1/download
{"file_id": "398431", "sub_format": "webvtt"}
I get:
{
"link": "https://www.opensubtitles.com/download/65...4/subfile/Rocky%20IV.DVDRip.CULTXviD.part1.br.webvtt",
"file_name": "Rocky IV.DVDRip.CULTXviD.part1.br.webvtt",
...
}