class
Stremio::Addon::DevKit::ManifestResource
- Stremio::Addon::DevKit::ManifestResource
- Reference
- Object
Overview
Represents a single entry in the "resources: []" described in the manifest.json
There is a more condensed form of this (ie: resources: ["catalog"]). However, we also use this more
verbose form to generate the types: [] entry in the manifest.json.
source: https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/manifest.md#advanced
Included Modules
- JSON::Serializable
- JSON::Serializable::Fake
Defined in:
stremio-addon-devkit/manifest.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : ResourceType, types : Set(Stremio::Addon::DevKit::ContentType) = Set(ContentType).new, idPrefixes : Set(String) = Set(String).new)
Instance Method Summary
- #idPrefixes(json : JSON::Builder) : Nil
-
#idPrefixes : Set(String)
#idPrefixes: optional - array of strings, use this if you want your addon to be called only for specific content IDs - for example, if you set this to["yt_id:", "tt"], your addon will only be called for id values that start withyt_id:ortt. -
#idPrefixes=(idPrefixes : Set(String))
#idPrefixes: optional - array of strings, use this if you want your addon to be called only for specific content IDs - for example, if you set this to["yt_id:", "tt"], your addon will only be called for id values that start withyt_id:ortt. -
#name : ResourceType
#name: required - string, the name of the resource -
#types : Set(ContentType)
#types: required - array of strings, supported types, from all the Content Types -
#types=(types : Set(ContentType))
#types: required - array of strings, supported types, from all the Content Types
Constructor Detail
Instance Method Detail
#idPrefixes: optional - array of strings, use this if you want your addon to be called only for specific content IDs - for example, if you set this to ["yt_id:", "tt"], your addon will only be called for id values that start with yt_id: or tt.
NOTE This is only relevant for resource_types of stream and meta. This should not be used for catalog resources.
#idPrefixes: optional - array of strings, use this if you want your addon to be called only for specific content IDs - for example, if you set this to ["yt_id:", "tt"], your addon will only be called for id values that start with yt_id: or tt.
NOTE This is only relevant for resource_types of stream and meta. This should not be used for catalog resources.
#types: required - array of strings, supported types, from all the Content Types
#types: required - array of strings, supported types, from all the Content Types