crossing out objects with no source

This commit is contained in:
Hazel Noack
2025-10-09 12:14:27 +02:00
parent 9a461a0c16
commit e9d1d20c63
2 changed files with 74 additions and 14 deletions

View File

@@ -52,8 +52,13 @@ func printResults(musicObjects []data.MusicObject) {
}
}
for _, source := range m.GetSources() {
results[i] += "\n\t- " + source.Url
sources := m.GetSources()
if len(sources) > 0 {
for _, source := range sources {
results[i] += "\n\t- " + source.Url
}
} else {
results[i] = color.StrikeThrough + results[i] + color.Reset
}
}