krateng / maloja

Self-hosted music scrobble database to create personal listening statistics and charts
https://maloja.krateng.ch
GNU General Public License v3.0
1.18k stars 70 forks source link

Artists with `&` on their name appear twice #372

Open anon-dev-gh opened 3 months ago

anon-dev-gh commented 3 months ago

Example Bohren & der Club of Gore appears as Bohren,der Club of Gore artists both imported from last.fm and scrobbled directly from navidrome.

gBasil commented 3 months ago

I believe there's some config value that allows you to specify artist names to not split or something like that, but I don't recall what it is.

anon-dev-gh commented 3 months ago

Maybe is https://github.com/krateng/maloja/blob/c6cf28896ca836407a1943cae5542d2b83d009cf/maloja/pkg_global/conf.py#L205?

cgiacofei commented 3 months ago

That can be handled with a rules file:

# NAME: Special Symbols
# DESC: Defines artists with separators in their names

belongtogether  Megan & Liz
belongtogether  Bell, Book & Candle
belongtogether  K/DA
belongtogether  Darth & Vader
belongtogether  Case & Point
belongtogether  Selena Gomez & The Scene
belongtogether  Gerry & The Pacemakers
belongtogether  AC/DC
belongtogether  Au/Ra

You just need to create a .tsv file in the rules diectory with any artists needed.