stremio-addon-sdk
stremio-addon-sdk copied to clipboard
Stremio on Linux not calling stream handler, also extra characters in genre.
OS: Ubuntu 22.04.4 LTS (Jammy Jellyfish) Linux app: Stremio 4.4.168 Web UI 4.4.172 Server 4.20.8
I have a catalog plugin that can't trigger the stream handler.
Sample manifest:
{
id: 'org.stremio.my-addon-catalog',
version: '1.0.0',
name: 'My addon',
description: 'Addon providing a catalog',
resources: ['catalog', 'stream', 'meta'],
types: ['movie', 'series'],
catalogs: [
{
type: 'movie',
id: 'my-addon-movies',
extra: [
{
name: 'genre',
options: [
'Movies',
],
isRequired: false,
},
],
}
],
idPrefixes: ['my-addon'],
idProperty: ['imdb_id'],
}
Sample meta response from catalog handler
const metas = [{
id: 'my-addon:eyJtYWduZXRMaW5rIjoibWFnbmV0Oj94dD11cm46YnRpaDpiZjM5YmIyNjczZWViMTUxMjllNGJkYWM1NjhkZjg0NGQ0NWNjYmQxIiwicGFyc2VkTmFtZSI6IlRoZS5VbWJyZWxsYS5BY2FkZW15LlMwNC5DT01QTEVURS43MjBwLk5GLldFQlJpcC54MjY0LUdhbGF4eVRWIiwic2l6ZSI6IjE3MTUzMDQ0MTkiLCJzZWVkZXJzIjoiMTA4NyIsImxlZWNoZXJzIjoiODc2IiwicG9zdGVyIjoiaHR0cHM6Ly9pbWFnZXMubWV0YWh1Yi5zcGFjZS9wb3N0ZXIvbGFyZ2UvdHQxMzEyMTcxL2ltZyIsImlzVmFsaWRJbWRiSWQiOmZhbHNlLCJleHRyYSI6eyJ0eXBlIjoibW92aWUiLCJpZCI6InRwYmN0bGctbW92aWVzIiwiZXh0cmEiOnsiZ2VucmUiOiJNb3ZpZXMuanNvIn0sImNvbmZpZyI6e319LCJpbmZvSGFzaCI6ImJmMzliYjI2NzNlZWIxNTEyOWU0YmRhYzU2OGRmODQ0ZDQ1Y2NiZDEifQ==',
type: 'movie',
name: 'The.Umbrella.Academy.S04.COMPLETE.720p.NF.WEBRip.x264-GalaxyTV ',
poster: 'https://images.metahub.space/poster/large/tt1312171/img',
description: 'A description'
}];
return Promise.resolve({metas});
If I change the type to series then the stream handler triggers properly.
Also, the genre in the catalog handler is getting these extra characters .jso in the Linux app.
catalogHandler {
type: 'movie',
id: 'my-addon-movies',
extra: [Object: null prototype] { genre: 'Movies.jso' },
config: {}
}
Both issues do not happen on the web app.
can u provide the stream handler?