stremio-addon-sdk: Not able to add series correctly
I’ve added a TV series in Catalog format like bellow:
const CATALOG = [
{
id: "test_001:1:1",
season: 1,
episode: 1,
type: "series",
name: "My Test Series",
poster: 'https://upload.wikimedia.org/wikipedia/en/thumb/e/e5/Pok%C3%A9mon_Detective_Pikachu_teaser_poster.jpg/220px-Pok%C3%A9mon_Detective_Pikachu_teaser_poster.jpg',
description: 'Pikachu!!!'
},
{
id: "lai001:1:2",
season: 1,
episode: 2,
type: "series",
name: "My Test Series",
poster: 'https://upload.wikimedia.org/wikipedia/en/thumb/e/e5/Pok%C3%A9mon_Detective_Pikachu_teaser_poster.jpg/220px-Pok%C3%A9mon_Detective_Pikachu_teaser_poster.jpg',
description: 'Pikachu!!!'
}];
With stream list like this:
const STREAMS = {
"lai001:1:1": {
infoHash: "b9302d042f8f856d042e4c74e38cca6173c8b40e", fileIdx: 5
},
"lai001:1:2": {
infoHash: "b9302d042f8f856d042e4c74e38cca6173c8b40e", fileIdx: 5
}
};
But it’s not being grouped in Stremio and streams are not found.

What’s wrong in my code? how can I add a series?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (6 by maintainers)
This seems to be a bug, in order to show videos as episode you’ll need to use
numberinstead ofepisode.Here is a working example:
The “series” type does not work like the “movie” type. With the “movie” and “tv” types, the stream requests are made as soon as you access the Details page, but with the “series” and “channel” types, the Details page expects the
metato include thevideosproperty, with an array of episodes or videos. When a video or episode is then selected, a stream request will be made for that episode or video id, instead of the meta id (like with “movie” and “tv”)Check the
videosproperty on this page for more information: https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/meta.mdThis is the intended behaviour, not a bug.