Files
mal/internal/domain/provider.go
2026-05-13 13:01:39 +02:00

28 lines
436 B
Go

package domain
import (
"context"
)
type StreamSource struct {
URL string
Quality string
}
type StreamResult struct {
URL string
Referer string
Subtitles []Subtitle
Qualities []StreamSource
}
type Subtitle struct {
URL string
Label string
}
type Provider interface {
Name() string
GetStreams(ctx context.Context, animeID int, titleCandidates []string, episode string, mode string) (*StreamResult, error)
}