Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
bogyka00
Posts: 1
Joined: Fri Nov 15, 2024 4:01 pm

Question About Finding Subtitles in Different Languages with Matching Release and Timing

Fri Nov 15, 2024 4:05 pm

Hello,

I have a question regarding subtitle matching on OpenSubtitles (API).

My app always displays an English subtitle (order_by: 'download_count', first match). I would like to obtain one subtitle for each language that corresponds to the same release and timing.

For example: https://api.opensubtitles.com/api/v1/su ... load_count

English Subtitle Example:

Code: Select all

json "slug": "arcane-s01e02-some-mysteries-are-better-left-unsolved-1080p-nf-web-dl-ddp5-1-h-264-tepes-en", "release": "Arcane.S01E02.1080p.NF.WEB-DL.DDP5.1.H.264-TEPES", "file_hashes": ["5833a147253e5285", "00f458c360b87a1c"]
Using the file_hash (e.g., "00f458c360b87a1c"), we were able to find the corresponding Spanish subtitle:

Code: Select all

json "slug": "arcane-s01e02-some-mysteries-are-better-left-unsolved-1080p-nf-web-dl-ddp5-1-hdr-hevc-tepes_track11", "release": "Arcane.S01E02.Some.Mysteries.Are.Better.Left.Unsolved.1080p.NF.WEB-DL.DDP5.1.HDR.HEVC-TEPES_track11", "language": "es", "file_hashes": ["0a3a09c18f581e7c", "00f458c360b87a1c"]
However, we were unable to find the Swedish version using the same file hash or the English release name:

Code: Select all

json "slug": "arcane-s01e02-some-mysteries-are-better-left-unsolved-1080p-nf-web-dl-ddp5-1-x264-tepes", "release": "Arcane.S01E02.Some.Mysteries.Are.Better.Left.Unsolved.1080p.NF.WEB-DL.DDP5.1.x264-TEPES", "language": "sv", "file_hashes": ["0a3a09c18f581e7c"]
In some cases, there is no file hash provided, or the release name is slightly different, but the subtitle still includes a common identifier like "TEPES", which could indicate the same release, regardless of details like resolution (720p vs. 1080p, etc.).

Is there a way to reliably match subtitles across different languages, even when file hashes and release names differ slightly?

Thank you in advance for your help!

User avatar
oss
Site Admin
Posts: 6066
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: Question About Finding Subtitles in Different Languages with Matching Release and Timing

Fri Nov 15, 2024 5:35 pm

Hi

we have this functionality in opensubtitles.org API. It is called SubTSGroup/SubTSGroupHash - the idea is to match timing from one subtitle to another one.

With API on .com not sure when this functionality will be implemented.

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 7 guests