Multiple file formats of same artists

Is there a way to scan or only display artists in a particular format? I have flac and mp3 files of the same songs and get stuck with duplicate songs displayed in Kodi. Is there a way to hide a particular version? Thanks.