fix tidal playlist metadata and retries

This commit is contained in:
2026-05-21 23:03:27 +02:00
parent 3bc965db77
commit fa39582849
4 changed files with 249 additions and 66 deletions

View File

@@ -1289,11 +1289,12 @@ func buildTagMetadata(trackMeta map[string]any, title, source, trackID string, o
if discTotal == 0 {
discTotal = jsonutil.IntFromAny(trackMeta["numberOfVolumes"])
}
if discTotal == 0 && opts.albumDiscTotal > 0 {
if !opts.forPlaylist && discTotal == 0 && opts.albumDiscTotal > 0 {
discTotal = opts.albumDiscTotal
}
if opts.forPlaylist {
discTotal = 1
discNumber = 0
discTotal = 0
}
if !opts.forPlaylist && discNumber == 0 {
discNumber = 1