fix crash with empty artist name
This commit is contained in:
parent
bd2826abde
commit
11393c242b
|
@ -93,7 +93,8 @@ function getArtists()
|
|||
artists = unique(beetsdb)
|
||||
# albums = group_albums_as_artists()
|
||||
# .|> does not work in a macro. What to do?
|
||||
for index in unique(first.(getfield.(artists, Ref(:name))) .|> uppercase)
|
||||
for index in unique(first.(filter(isempty,
|
||||
getfield.(artists, Ref(:name)))) .|> uppercase)
|
||||
indexXML = new_child(indexes, "index")
|
||||
set_attribute(indexXML, "name", string(index))
|
||||
for artist in filter(x -> startswith(x.name, string(index)), artists)
|
||||
|
|
Loading…
Reference in New Issue