mirror of
https://git.sr.ht/~joren/streamrip-go
synced 2026-07-27 23:42:28 +02:00
fix: set album track totals
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user