Its been a while since I have done this but the solution I used to use was to use a 3rd party app that would scan your library and create NFO? files. I believe emby may also do this as well as a lot more for kodi, so perhaps check out emby.
Its usually caused by the recording not having enough info or the online databases giving multiple matches, so these programs will usually present a list of the possible matches for you to choose the correct one.