madmaxoft / SkauTan

Music player for Skautské Tancování
https://skautske-tancovani.cz/
The Unlicense
1 stars 2 forks source link

Clean up song metadata #227

Closed madmaxoft closed 5 years ago

madmaxoft commented 5 years ago

Some songs have metadata remnants of bad splitting, such as " - " at the front of their Author field, etc. Similar metadata artifacts are created with the filename-to-metadata matcher. All these artifacts should be cleaned up while scanning the song metadata.

Additionally, some items should be scrubbed from anywhere in the string

madmaxoft commented 5 years ago

Also noteworthy: The current matcher is also a bit too greedy when the song name contains a genre name as well, such as The Godfather Waltz, removing the genre name. This needs some tweaking, too.

madmaxoft commented 5 years ago

It might be possible to detect situations when both the author and title are stuffed into a single field, and the other field is empty / has had other info that was removed during scanning. For example: ID3Author = SW 29, ID3Title = author - title