Stremio / stremio-addon-sdk

🧙 A Node.js SDK for creating and publishing Stremio add-ons
https://www.stremio.com/addon-sdk
MIT License
656 stars 175 forks source link

Search not work if catalogs genre "isRequired true" #266

Closed ewwink closed 6 months ago

ewwink commented 6 months ago

if I set genre with "isRequired": true my addon has no search function, it is expected behavior?

"catalogs": [{
    "id": "myaddon",
    "name": "test addon",
    "extra": [{
        "name": "search",
        "isRequired": false
      }
      {
        "name": "genre",
        "options": [
          "New Release",
          "Most Seeder"
        ],
        "isRequired": true // <= the problem
      }
    ]
  }
]
dexter21767-dev commented 6 months ago

yes that's by design. you're setting the genre as a required option, which means this catalog will only appear in the discovery page (where u can select the genre), and since u can't select the genre in the search or in the board it won't appear there. if u want it to appear in all these u need to set it to false.

and if u set the search as required then it won't appear in discovery or board.

ewwink commented 6 months ago

OK I just need to add another search only catalog and thanks.

dexter21767-dev commented 6 months ago

@ewwink you can have one catalog for everything if that's what u want, just make sure to set "isrequired" to false for everything.