If you add the following void function to the Plugin class, MB will detect it and call it whenever the selected file changes
public void OnSelectedFilesChanged(string[] filenames) {
}
https://getmusicbee.com/patches/MusicBee34_Patched.zip
unzip and replace the existing musicbee application files