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"]
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"]
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"]
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!