See this add-on on the kodi.tv showcase
This addon allows a plugin to use the media libraries of SRG SSR.