With the 2019 Stremio Add-On competition, our team is busy improving our documentation, creating tutorials and guides and making it as easy as possible for anyone with basic coding skills to create an add-on for their favourite media. Here are a few updates.
Subtitles-related changes to the add-on system
We’ve made critical changes to the way subtitles work in Stremio. As a result, it’s now much easier and more practical to make subtitles add-ons:
- Breaking change: we’ve made subtitles requests consistent with stream requests; namely, we’re using
videoId
as the ID now andvideoHash
is inextra
; see the new documentation here. If you’re building a subtitles add-on, you need to change this right away! The updated Stremio will be rolled out on Monday (March 18, 2019). - We’ve resolved a bug that restricted Stremio to only requesting from one subtitles add-on.
- We’ve made Stremio request subtitles from all subtitles add-ons, and for all types, including channels.
Guides
We’ve published updated guides on:
Enter the Stremio add-on contest
If you are a developer and have an idea for some great content you’d like to bring to Stremio, now is the best time to do it. You can win a share of a $5,000 prize pool! Learn more about the contest and enter:
How difficult is to develop a simple search capability like such,
top + action + 2019!…
currently is it one option or the other, max 2, e.g. rate + action.
Hi, can someone tell me how can I get subtitle group by language ?
I can’t find this anywhere in documentation, I use new SDK with addon-bootstrap and write new addon for subtitle only.
I try like in code below but not work, also try to use underscore and _.groupBy(arr, ‘lang’) and also not work.
const subs = [
{url: url1, lang: ‘lang1’},
{url: url2, lang: ‘lang1’},
{url: url3, lang: ‘lang2’},
];
builder.defineSubtitlesHandler( ({ type, id }) => {
return Promise.resolve({ subtitles: subs })
})
Is this SDK have some limitation/bug or I doing something wrong ?
how do I turn off subtitles