fix: exit early when we have no artists
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
This commit is contained in:
parent
7b78375402
commit
88b14dd761
1 changed files with 5 additions and 0 deletions
|
|
@ -155,6 +155,11 @@ fn format_artist(
|
||||||
actual_artists.extend(album_artists.into_iter().map(|v| (4, v))); // Prioritize album artists over track artists
|
actual_artists.extend(album_artists.into_iter().map(|v| (4, v))); // Prioritize album artists over track artists
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if actual_artists.is_empty() {
|
||||||
|
// return early. No artists found
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
|
||||||
let mut actual_artists = actual_artists
|
let mut actual_artists = actual_artists
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.flat_map(|(prio, v)| {
|
.flat_map(|(prio, v)| {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue