How to enable subtitles only if movie language is different from subtitles language



Hi,
I would like to know if there’s a way to enable subtitles only if the movie language is different than the subtitles language.
For example, I always subtitles when watching movies that are not in Hebrew (mainly English), hence the deafult is to always show subtitles.
Though, some of the movies in my library are in Hebrew, and sometimes those also includes subtitles.
What I’m looking for is a settings that will detect that the subtitles language and the movie are in the same language and than subtitles will not appear.

Another idea – is there a way to disable subtitles only if movie language is Hebrew?

Any idea how to do that?

Thanks!