mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-06-17 15:05:39 +02:00
Replace Deezer yt-dlp usage with native ARL session + media.get_url resolution, add BF_CBC_STRIPE decryption in downloader, and wire cipher-aware Deezer downloads through the main rip pipeline. Includes validation hardening and metadata/source-id improvements used by tagging flows.
22 lines
525 B
Go
22 lines
525 B
Go
package provider
|
|
|
|
import "context"
|
|
|
|
type Downloadable struct {
|
|
URL string
|
|
Extension string
|
|
Source string
|
|
Cipher string
|
|
TrackID 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
|
|
}
|