Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/getRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ function getRouter({ manifest , get }) {
res.end(manifestRespBuf)
}

const hasConfigBehaviorHint = (manifest.behaviorHints || {}).configurable
const hasConfig = (manifest.config || []).length

if (hasConfig && !(manifest.behaviorHints || {}).configurable) {
if (hasConfig && !hasConfigBehaviorHint) {
console.warn('manifest.config is set but manifest.behaviorHints.configurable is disabled, the "Configure" button will not show in the Stremio apps')
}

const configPrefix = hasConfig ? '/:config?' : ''
const configPrefix = hasConfig || hasConfigBehaviorHint ? '/:config?' : ''
// having config prifix always set to '/:config?' won't resault in a problem for non configurable addons,
// since now the order is restricted by resources.

Expand Down