mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-06-17 15:05:39 +02:00
initial Go port of streamrip
This commit is contained in:
19
internal/provider/provider.go
Normal file
19
internal/provider/provider.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package provider
|
||||
|
||||
import "context"
|
||||
|
||||
type Downloadable struct {
|
||||
URL string
|
||||
Extension string
|
||||
Source string
|
||||
}
|
||||
|
||||
type Client interface {
|
||||
Source() string
|
||||
Login(ctx context.Context) error
|
||||
LoggedIn() bool
|
||||
GetMetadata(ctx context.Context, item, mediaType string) (map[string]any, error)
|
||||
Search(ctx context.Context, mediaType, query string, limit int) ([]map[string]any, error)
|
||||
GetDownloadable(ctx context.Context, item string, quality int) (*Downloadable, error)
|
||||
Close() error
|
||||
}
|
||||
Reference in New Issue
Block a user