Skip to content

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

@trimechee

Description

@trimechee

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions