mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-06-17 15:05:39 +02:00
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:
@@ -403,7 +403,7 @@ func main() {
|
||||
for _, idx := range selection {
|
||||
item := results[idx]
|
||||
if !sopts.ignoreDB {
|
||||
already, checkErr := mainApp.Store.IsDownloaded(ctx, item.ID)
|
||||
already, checkErr := mainApp.Store.IsDownloaded(ctx, source, item.ID)
|
||||
if checkErr == nil && already {
|
||||
skippedDownloaded++
|
||||
fmt.Printf("skip (already downloaded): id=%s | %s\n", item.ID, item.Title)
|
||||
@@ -457,7 +457,7 @@ func main() {
|
||||
for _, idx := range selection {
|
||||
item := results[idx]
|
||||
if !sopts.ignoreDB {
|
||||
already, checkErr := mainApp.Store.IsDownloaded(ctx, item.ID)
|
||||
already, checkErr := mainApp.Store.IsDownloaded(ctx, source, item.ID)
|
||||
if checkErr == nil && already {
|
||||
skippedDownloaded++
|
||||
fmt.Printf("skip (already downloaded): id=%s | %s\n", item.ID, item.Title)
|
||||
|
||||
Reference in New Issue
Block a user