fix: set album track totals

This commit is contained in:
Joren committed 2026-07-12 03:28:27 +02:00
1 parent 99c531928e
commit e336bb96f1
2 files changed
+19

No files matched your search

+3
View File
@@ -1399,6 +1399,9 @@ func buildTagMetadata(trackMeta map[string]any, title, source, trackID string, o
if trackTotal == 0 {
trackTotal = jsonutil.IntFromAny(trackMeta["track_total"])
}
if trackTotal == 0 && opts.total > 0 {
trackTotal = opts.total
}
if opts.forPlaylist && opts.total > 0 {
trackTotal = opts.total
}