module Stremio::Addon::DevKit::Mixins::Meta

Included Modules

Direct including types

Defined in:

stremio-addon-devkit/mixins/meta.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def cast(json : JSON::Builder) : Nil #

[View source]
def director(json : JSON::Builder) : Nil #

[View source]
def genre(json : JSON::Builder) : Nil #

The #genre is just a human-readable descriptive field


[View source]
def id : String #

You can use any unique string for the #id. In this case we use the corresponding IMDB ID. Stremio features an system add-on called Cinemeta. This add-on provides detailed metadata for any movie or TV show that matches a valid IMDB ID.

NOTE All IMDB ID's begin with 'tt' (ie: tt0032138)


[View source]
def id=(id : String) #

You can use any unique string for the #id. In this case we use the corresponding IMDB ID. Stremio features an system add-on called Cinemeta. This add-on provides detailed metadata for any movie or TV show that matches a valid IMDB ID.

NOTE All IMDB ID's begin with 'tt' (ie: tt0032138)


[View source]
def links(json : JSON::Builder) : Nil #

[View source]
def links : Array(Link) #

[View source]
def links=(links : Array(Link)) #

[View source]
def posterShape : PosterShape #

[View source]
def posterShape=(posterShape : PosterShape) #

[View source]
def type : ContentType #

The #type should match the catalog type.


[View source]
def writer(json : JSON::Builder) : Nil #

[View source]

Macro Detail

macro link_legacy(key, category) #

#director, #cast - optional - directors and cast, both arrays of names (string) (warning: this will soon be deprecated in favor of #links)


[View source]