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.
This commit is contained in:
Joren committed 2026-04-19 21:25:04 +02:00
1 parent 97e8b758b3
commit d4643d877e
6 files changed
+157 -21

No files matched your search

+4 -4
View File
@@ -3,8 +3,8 @@ package store
import "context"
type Database interface {
IsDownloaded(ctx context.Context, id string) (bool, error)
MarkDownloaded(ctx context.Context, id string) error
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
}
@@ -15,11 +15,11 @@ func NewDummy() *Dummy {
return &Dummy{}
}
func (d *Dummy) IsDownloaded(context.Context, string) (bool, error) {
func (d *Dummy) IsDownloaded(context.Context, string, string) (bool, error) {
return false, nil
}
func (d *Dummy) MarkDownloaded(context.Context, string) error {
func (d *Dummy) MarkDownloaded(context.Context, string, string) error {
return nil
}