Files
streamrip-go/internal/store/store.go
Joren d4643d877e fix source-aware download tracking and filter/path regressions
Make download dedupe source-specific to prevent cross-provider ID collisions. Also correct non-remaster filtering, avoid FLAC tagging on non-FLAC files, and use album IDs for singles folder templating.
2026-04-19 21:25:04 +02:00

33 lines
666 B
Go

package store
import "context"
type Database interface {
IsDownloaded(ctx context.Context, source, id string) (bool, error)
MarkDownloaded(ctx context.Context, source, id string) error
MarkFailed(ctx context.Context, source, mediaType, id string) error
Close() error
}
type Dummy struct{}
func NewDummy() *Dummy {
return &Dummy{}
}
func (d *Dummy) IsDownloaded(context.Context, string, string) (bool, error) {
return false, nil
}
func (d *Dummy) MarkDownloaded(context.Context, string, string) error {
return nil
}
func (d *Dummy) MarkFailed(context.Context, string, string, string) error {
return nil
}
func (d *Dummy) Close() error {
return nil
}