Page 1 of 1

Endpoint: /api/v1/subtitles Failed

Posted: Thu Sep 30, 2021 7:50 pm
by fabio_fish
Good afternoon people.
I'm trying to search Endpoint /api/v1/subtitles, but my search has no effect when I send the language with any of the information below:
pt | pt-BR | pt-PT....

Code: Select all

curl --request GET \ --url 'https://api.opensubtitles.com/api/v1/subtitles?imdb_id=tt4044196&languages=pt-BR' \ --header 'Api-Key: XXXXXXXXXXXXXXX'

Code: Select all

{ "total_pages": 0, "total_count": 0, "page": 1, "data": [] }
Am I making an error in this search or is it an API error? If I enter the language such as:
en | fr....
My search has results

Code: Select all

{ "total_pages": 1, "total_count": 5, "page": 1, "data": [ { "id": "2817921", "type": "subtitle", "attributes": { "subtitle_id": "2817921", "language": "en", "download_count": 80508, "new_download_count": 20, "hearing_impaired": true, "hd": true, "format": null, "fps": 23.976, "votes": 0, "points": 0, "ratings": 0.0, "from_trusted": true, "foreign_parts_only": false, "auto_translation": false, "ai_translated": false, "machine_translated": null, "upload_date": "2014-12-13T14:51:16Z", "release": "Grimm.S04E08.HDTV.x264-LOL", "comments": "Sync and Corrected by kDragon/Thnkx to addic7ed.", "legacy_subtitle_id": 5928398, "uploader": { "uploader_id": 63365, "name": "GoldenBeard", "rank": "translator" }, "feature_details": { "feature_id": 291470, "feature_type": "Episode", "year": 2014, "title": "Chupacabra", "movie_name": "Grimm - S04E08 Chupacabra", "imdb_id": 4044196, "tmdb_id": 1019194, "season_number": 4, "episode_number": 8, "parent_imdb_id": 1830617, "parent_title": "Grimm", "parent_tmdb_id": 39351, "parent_feature_id": 11477 }, "url": "https://www.opensubtitles.com/en/subtitles/legacy/5928398", "related_links": [ { "label": "All subtitles for Tv Show Grimm", "url": "https://www.opensubtitles.com/en/features/redirect/11477", "img_url": "https://s9.osdb.link/features/0/7/4/291470.jpg" }, { "label": "All subtitles for Episode Chupacabra", "url": "https://www.opensubtitles.com/en/features/redirect/291470" } ], "files": [ { "file_id": 2890108, "cd_number": 1, "file_name": "Grimm.S04E08.HDTV.x264-LOL.srt" } ] } }, { "id": "2818013", "type": "subtitle", "attributes": { "subtitle_id": "2818013", "language": "en", "download_count": 17222, "new_download_count": 30, "hearing_impaired": false, "hd": true, "format": null, "fps": 23.976, "votes": 0, "points": 0, "ratings": 0.0, "from_trusted": true, "foreign_parts_only": false, "auto_translation": false, "ai_translated": false, "machine_translated": null, "upload_date": "2014-12-13T14:51:46Z", "release": "Grimm.S04E08.HDTV.x264-LOL", "comments": "Sync and Corrected by kDragon/Thnkx to addic7ed.", "legacy_subtitle_id": 5928402, "uploader": { "uploader_id": 63365, "name": "GoldenBeard", "rank": "translator" }, "feature_details": { "feature_id": 291470, "feature_type": "Episode", "year": 2014, "title": "Chupacabra", "movie_name": "Grimm - S04E08 Chupacabra", "imdb_id": 4044196, "tmdb_id": 1019194, "season_number": 4, "episode_number": 8, "parent_imdb_id": 1830617, "parent_title": "Grimm", "parent_tmdb_id": 39351, "parent_feature_id": 11477 }, "url": "https://www.opensubtitles.com/en/subtitles/legacy/5928402", "related_links": [ { "label": "All subtitles for Tv Show Grimm", "url": "https://www.opensubtitles.com/en/features/redirect/11477", "img_url": "https://s9.osdb.link/features/0/7/4/291470.jpg" }, { "label": "All subtitles for Episode Chupacabra", "url": "https://www.opensubtitles.com/en/features/redirect/291470" } ], "files": [ { "file_id": 2890207, "cd_number": 1, "file_name": "Grimm.S04E08.HDTV.x264-LOL.srt" } ] } }, { "id": "2819329", "type": "subtitle", "attributes": { "subtitle_id": "2819329", "language": "en", "download_count": 6638, "new_download_count": 6, "hearing_impaired": false, "hd": true, "format": null, "fps": 23.976, "votes": 0, "points": 0, "ratings": 0.0, "from_trusted": false, "foreign_parts_only": false, "auto_translation": false, "ai_translated": false, "machine_translated": null, "upload_date": "2014-12-16T20:35:37Z", "release": "Grimm.S04E08.Chupacabra.1080p.WEB-DL.DD5.1.H.264-ECI", "comments": "", "legacy_subtitle_id": 5962492, "uploader": { "uploader_id": 3282, "name": "os-auto", "rank": "Application Developers" }, "feature_details": { "feature_id": 291470, "feature_type": "Episode", "year": 2014, "title": "Chupacabra", "movie_name": "Grimm - S4E8 Chupacabra", "imdb_id": 4044196, "tmdb_id": 1019194, "season_number": 4, "episode_number": 8, "parent_imdb_id": 1830617, "parent_title": "Grimm", "parent_tmdb_id": 39351, "parent_feature_id": 11477 }, "url": "https://www.opensubtitles.com/en/subtitles/legacy/5962492", "related_links": [ { "label": "All subtitles for Tv Show Grimm", "url": "https://www.opensubtitles.com/en/features/redirect/11477", "img_url": "https://s9.osdb.link/features/0/7/4/291470.jpg" }, { "label": "All subtitles for Episode Chupacabra", "url": "https://www.opensubtitles.com/en/features/redirect/291470" } ], "files": [ { "file_id": 2891506, "cd_number": 1, "file_name": "Grimm.S04E08.Chupacabra.1080p.WEB-DL.DD5.1.H.264-ECI.srt" } ] } }, { "id": "2820634", "type": "subtitle", "attributes": { "subtitle_id": "2820634", "language": "en", "download_count": 3008, "new_download_count": 7, "hearing_impaired": false, "hd": true, "format": null, "fps": 0.0, "votes": 0, "points": 0, "ratings": 0.0, "from_trusted": false, "foreign_parts_only": false, "auto_translation": false, "ai_translated": false, "machine_translated": null, "upload_date": "2016-03-23T04:03:11Z", "release": "Grimm.S04E08.BDRip.x264-DEMAND", "comments": "", "legacy_subtitle_id": 6563192, "uploader": { "uploader_id": 3282, "name": "os-auto", "rank": "Application Developers" }, "feature_details": { "feature_id": 291470, "feature_type": "Episode", "year": 2014, "title": "Chupacabra", "movie_name": "Grimm - S04E08 Chupacabra", "imdb_id": 4044196, "tmdb_id": 1019194, "season_number": 4, "episode_number": 8, "parent_imdb_id": 1830617, "parent_title": "Grimm", "parent_tmdb_id": 39351, "parent_feature_id": 11477 }, "url": "https://www.opensubtitles.com/en/subtitles/legacy/6563192", "related_links": [ { "label": "All subtitles for Tv Show Grimm", "url": "https://www.opensubtitles.com/en/features/redirect/11477", "img_url": "https://s9.osdb.link/features/0/7/4/291470.jpg" }, { "label": "All subtitles for Episode Chupacabra", "url": "https://www.opensubtitles.com/en/features/redirect/291470" } ], "files": [ { "file_id": 2892810, "cd_number": 1, "file_name": "Grimm.S04E08.BDRip.x264-DEMAND-eng.srt" } ] } }, { "id": "5039152", "type": "subtitle", "attributes": { "subtitle_id": "5039152", "language": "en", "download_count": 1706, "new_download_count": 4, "hearing_impaired": true, "hd": true, "format": null, "fps": 23.976, "votes": 0, "points": 0, "ratings": 0.0, "from_trusted": false, "foreign_parts_only": false, "auto_translation": false, "ai_translated": false, "machine_translated": null, "upload_date": "2019-06-18T17:12:25Z", "release": "Grimm S04E08 HEVC-d3g", "comments": "OCRed from embedded VobSub, human checked and corrected.", "legacy_subtitle_id": 7807355, "uploader": { "uploader_id": 229065, "name": "hofnop", "rank": "Sub leecher" }, "feature_details": { "feature_id": 291470, "feature_type": "Episode", "year": 2014, "title": "Chupacabra", "movie_name": "Grimm - S04E08 Chupacabra", "imdb_id": 4044196, "tmdb_id": 1019194, "season_number": 4, "episode_number": 8, "parent_imdb_id": 1830617, "parent_title": "Grimm", "parent_tmdb_id": 39351, "parent_feature_id": 11477 }, "url": "https://www.opensubtitles.com/en/subtitles/legacy/7807355", "related_links": [ { "label": "All subtitles for Tv Show Grimm", "url": "https://www.opensubtitles.com/en/features/redirect/11477", "img_url": "https://s9.osdb.link/features/0/7/4/291470.jpg" }, { "label": "All subtitles for Episode Chupacabra", "url": "https://www.opensubtitles.com/en/features/redirect/291470" } ], "files": [ { "file_id": 5157825, "cd_number": 1, "file_name": "Grimm - S04E08 - Chupacabra.en.srt" } ] } } ] }

Re: Endpoint: /api/v1/subtitles Failed

Posted: Mon Oct 04, 2021 4:24 pm
by os_dev
Sorry about that, there was a bug handling pt-PT and pt-BR, it's fixed now.

Re: Endpoint: /api/v1/subtitles Failed

Posted: Tue Oct 05, 2021 1:30 am
by fabio_fish
Thank you very much. I tested it and it worked