Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtractRequestBaseURL = shared.ExtractRequestBaseURL
View Source
var HasVault = config.Feature.HasVault()
View Source
var IsMethod = shared.IsMethod
View Source
var IsPublicInstance = config.IsPublicInstance
View Source
var LogError = stremio_shared.LogError
View Source
var SendError = shared.SendError
View Source
var SendHTML = stremio_shared.SendHTML
View Source
var SendResponse = stremio_shared.SendResponse
Functions ¶
func AddStremioNewzEndpoints ¶
Types ¶
type Base ¶
type Base = stremio_template.BaseData
type Ctx ¶
type Ctx struct {
stremio_shared.Ctx
Indexers []Indexer
}
type StoreConfig ¶
type StoreConfig struct {
Code stremio_userdata.StoreCode
Token string
Error struct {
Code string
Token string
}
}
type TemplateData ¶
type TemplateData struct {
Base
Indexers []TemplateDataIndexer
CanAddIndexer bool
CanRemoveIndexer bool
Stores []StoreConfig
StoreCodeOptions []configure.ConfigOption
Mode configure.Config
CachedOnly configure.Config
Error string
ManifestURL string
Script template.JS
CanAddStore bool
CanRemoveStore bool
CanAuthorize bool
IsAuthed bool
AuthError string
SortConfig configure.Config
FilterConfig configure.Config
stremio_userdata.TemplateDataUserData
}
func (*TemplateData) HasFieldError ¶
func (td *TemplateData) HasFieldError() bool
func (*TemplateData) HasIndexerError ¶
func (td *TemplateData) HasIndexerError() bool
func (*TemplateData) HasStoreError ¶
func (td *TemplateData) HasStoreError() bool
type TemplateDataIndexer ¶
type UserData ¶
type UserData struct {
stremio_userdata.UserDataNewzIndexers
stremio_userdata.UserDataStores
CachedOnly bool `json:"cached,omitempty"`
Mode UserDataMode `json:"mode,omitempty"`
Sort string `json:"sort,omitempty"`
Filter string `json:"filter,omitempty"`
// contains filtered or unexported fields
}
func (*UserData) GetEncoded ¶
func (*UserData) GetRequestContext ¶
func (UserData) HasRequiredValues ¶
func (*UserData) SetEncoded ¶
func (UserData) StripSecrets ¶
type UserDataMode ¶
type UserDataMode string
var ( UserDataModeBoth UserDataMode = "debrid+stream" UserDataModeDebrid UserDataMode = "debrid" UserDataModeStream UserDataMode = "stream" )
func (UserDataMode) Contains ¶
func (m UserDataMode) Contains(mode UserDataMode) bool
func (UserDataMode) Debrid ¶
func (m UserDataMode) Debrid() bool
func (UserDataMode) IsValid ¶
func (m UserDataMode) IsValid() bool
func (UserDataMode) Stream ¶
func (m UserDataMode) Stream() bool
type WrappedStream ¶
type WrappedStream struct {
*stremio.Stream
R *stremio_transformer.StreamExtractorResult
// contains filtered or unexported fields
}
func GetStreamsFromIndexers ¶
func (WrappedStream) GetHDR ¶
func (s WrappedStream) GetHDR() string
func (WrappedStream) GetQuality ¶
func (s WrappedStream) GetQuality() string
func (WrappedStream) GetResolution ¶
func (s WrappedStream) GetResolution() string
func (WrappedStream) GetSize ¶
func (s WrappedStream) GetSize() string
func (WrappedStream) IsSortable ¶
func (s WrappedStream) IsSortable() bool
Click to show internal directories.
Click to hide internal directories.