Ok, by telling Kodi explicitly. What I meant was that Kodi would never know itself. As it’s then relying on users configuring their database in this very specific way, it’s not feasible for general use. A skin should not rely on too specific manual setup requirements - it’s basically the same as media flags relying on tons of naming conventions for bitrate, HDR, etc. like a few Kodi skins do.
But the compromise between ease of use/setup and amount of specific and on point features is what each skinner has to decide on.
I’ve marked one of your posts as the solution which I understand you’ve found over at the Kodi forum.