stremio_newz

package
v0.0.0-...-aba3ae9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 36 Imported by: 0

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 SendError = shared.SendError

Functions

func AddStremioNewzEndpoints

func AddStremioNewzEndpoints(mux *http.ServeMux)

func GetManifest

func GetManifest(r *http.Request, ud *UserData) *stremio.Manifest

Types

type Base

type Ctx

type Ctx struct {
	stremio_shared.Ctx
	Indexers []Indexer
}

type Indexer

type Indexer struct {
	newznab_client.Indexer
	Id   string
	Name string
}

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 TemplateDataIndexer struct {
	Type   configure.Config
	Name   configure.Config
	URL    configure.Config
	APIKey configure.Config
}

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 (ud *UserData) GetEncoded() string

func (*UserData) GetRequestContext

func (ud *UserData) GetRequestContext(r *http.Request) (*Ctx, error)

func (UserData) HasRequiredValues

func (ud UserData) HasRequiredValues() bool

func (*UserData) Ptr

func (ud *UserData) Ptr() *UserData

func (*UserData) SetEncoded

func (ud *UserData) SetEncoded(encoded string)

func (UserData) StripSecrets

func (ud UserData) StripSecrets() UserData

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 GetStreamsFromIndexers(reqCtx context.Context, ctx *Ctx, stremType, stremId string) ([]WrappedStream, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL