Skip to content

Tip to bypass 5 subtitles limit from opensubtitles.org #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
trimechee opened this issue Oct 23, 2024 · 0 comments
Open

Tip to bypass 5 subtitles limit from opensubtitles.org #256

trimechee opened this issue Oct 23, 2024 · 0 comments

Comments

@trimechee
Copy link

trimechee commented Oct 23, 2024

Hi, thank's again for this amazing great extrension life saver :) 💯 🥇

So if our beloved EasySubs plan to keep or enhance the great feature : search and add subtitle to streaming video from opensubtitle website, the problem is opensubtilte . org site imposes a limit of 5 subtile per day , maybe the recommendations and advices of Mr Bizilizi can help to fix this limit problem, thank you very much !

Missing Authorization header

plussub/plussub#78

"Guys, your addon is not really helpful because you are making wrong api requests. According to this page:
https://opensubtitles.stoplight.io/docs/opensubtitles-api/e3750fd63a100-getting-started#authorization-jwt

You need to pass the authorization header if you want a user to download more than 5 subs per day, otherwise its limited to its IP, and honestly makes this extension kinda useless."

const { file_name, link } = await fetch('https://api.opensubtitles.com/api/v1/download', {
method: 'POST',
body: JSON.stringify({ file_id: entry.attributes.files[0].file_id, ...formatArgument }),
headers: {
'Content-Type': 'application/json',
Accept: '/',
'Accept-Encoding': 'gzip, deflate, br',
'Api-Key': 'Th2A6DhpAl1kshBZlLqwwfZZd0i7p7Hn',
'X-User-Agent': 'plussub'
}
}).then((r) => r.json());

@trimechee trimechee changed the title Tip to bypass 5 subtitles limit from openssubtitles.org Tip to bypass 5 subtitles limit from opensubtitles.org Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant