Stremio / stremio-addon-sdk

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

Prefix on catalog names #304

Open duoi opened 6 days ago

duoi commented 6 days ago

Hi,

I'm trying to understand what causes the prefix in catalog names. I notice different rendering on the web and installable players (postfix and prefix, respectively). Ideally I'd like to remove or disable it.

Does it have something to do with type? or maybe something to do with idPrefixes? Or is it something we can't control at all?

The below is a sample of the manifest.json that is passed through. Thanks in advance.

{
  "id": "community.trakt-tv",
  "version": "0.2.7",
  "name": "Trakt Tv",
  "description": "Addon for getting Trakt's public and user lists, recommendations and watch list.\n token expires on: 1/8/2025, 11:47:58 AM",
  "logo": "https://2ecbbd610840-trakt.baby-beamup.club/public/logoPS.png?ver=0.2.7",
  "background": "https://2ecbbd610840-trakt.baby-beamup.club/public/background.png?ver=0.2.7",
  "catalogs": [
    {
      "type": "trakt",
      "id": "trakt_search_movies",
      "name": "trakt - search movies",
      "extra": [
        {
          "name": "search",
          "isRequired": true
        }
      ]
    },
    {
      "type": "trakt",
      "id": "trakt_search_series",
      "name": "search series",
      "extra": [
        {
          "name": "search",
          "isRequired": true
        }
      ]
    }
  ],
  "resources": [
    {
      "name": "meta",
      "types": [
        "series",
        "movie"
      ],
      "idPrefixes": [
        "trakt:"
      ]
    }
  ],
  "types": [],
  "idPrefixes": [
    "trakt"
  ],
  "behaviorHints": {
    "configurable": true,
    "configurationRequired": false
  }
}
jaruba commented 5 days ago

It is uncontrollable from the addon's side, each app chooses how to display the catalog names, it is a combination of the addon name and actual catalog name in order to distinguish catalogs that may have the same name across multiple addons

duoi commented 4 days ago

@jaruba that makes sense. Thanks for the clarification. Are there any plans to make this toggleable on a per-addon or global basis?

jaruba commented 4 days ago

@duoi i'm afraid not, the reality of it is that if a task was made for this, the priority would be very low and require the assistance of many devs on many different platforms, it is not worth the hassle especially as this is the very first time it was ever requested