feat: migrate playback module to modular domain pattern

This commit is contained in:
2026-05-13 10:34:01 +02:00
parent c94a2fed04
commit 0d6c7613a9
7 changed files with 231 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
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, episode string, mode string) (*StreamResult, error)
}