Subtitles scraper

Hello everyone,

I am trying to make a subtitle scraper using the Kodi logic. Does Kodi fetch the subtitles from the video streaming or should the subtitles always be provided from extern sources like opensubtitles?

Kind regards