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.
KaKi87
Posts: 2
Joined: Mon Oct 24, 2022 11:27 pm

Get one subtitle per episode of a show ?

Mon Oct 24, 2022 11:45 pm

Hello,

I would like to make an app that allows the user to search quotes by keywords from any episode of a given show.

Here are the steps from the user's point of view :
- submit show title ;
- select show ;
- submit keywords ;
- read matching quotes ;

Here are the steps I imagined from my developer point of view :
- list matching shows by title on TMDB ;
- list subtitles by TMDB ID on OpenSubtitles ;
- download one subtitle per episode ;
- search for occurences in each subtitle.

But, after reviewing OpenSubtitles' API, turns out I can't list all subtitles for a show without making a separate request for each episode nor downloading subtitles without making a request to get a temporary link for it.

Which means, here are the actual steps :
- list matching shows by title on TMDB ;
- list all episodes for selected show on TMDB ;
- list all subtitles for each episode on OpenSubtitles ;
- get a temporary link for one subtitle for each episode on OpenSubtitles ;
- download each subtitle from said link.

There's no way I can make that much requests without hitting the rate limit, right ?
If yes, what other option do I have ?

Thanks.

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

Re: Get one subtitle per episode of a show ?

Thu Oct 27, 2022 6:17 pm

for this would be good if we index and search in subtitle contents. The db would be quite huge, it is not impossible to do, but it is problem for now, we have another more important things to do.

You can write me PM, maybe I have idea how we can help

KaKi87
Posts: 2
Joined: Mon Oct 24, 2022 11:27 pm

Re: Get one subtitle per episode of a show ?

Sat Oct 29, 2022 12:52 am

Done, thanks !

Return to “Developing”

Who is online

Users browsing this forum: Ahrefs [Bot] and 23 guests