fix: support stream resolving without config

This commit is contained in:
WebStreamr 2025-08-13 10:28:28 +00:00
parent 3e964f28ff
commit 17da20f6d0
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View file

@ -18,6 +18,7 @@ export class StreamController {
this.sources = sources;
this.streamResolver = streams;
this.router.get('/stream/:type/:id.json', this.getStream.bind(this));
this.router.get('/:config/stream/:type/:id.json', this.getStream.bind(this));
}

View file

@ -4,7 +4,7 @@ exports[`buildManifest default manifest 1`] = `
{
"behaviorHints": {
"configurable": true,
"configurationRequired": true,
"configurationRequired": false,
"p2p": false,
},
"catalogs": [],

View file

@ -25,7 +25,7 @@ export const buildManifest = (sources: Source[], extractors: Extractor[], config
behaviorHints: {
p2p: false,
configurable: true,
configurationRequired: Object.keys(config).length === 0,
configurationRequired: false,
},
config: [],
stremioAddonsConfig: {