Maybe you are thinking of Subliminal which works by calling GuessIt to identify the video and then tries to find and download subtitles from various sources. There are plugins to use it automatically from mpv and probably other players too.
Edit: looks like most of the providers are broken so this doesn’t work very well anymore.