Kodi fails scraping mkv series

Usually i download series in avi format and Kodi runs normally, but , if I download a episode in HD , usually in mkv container, kodi do not scrape it so the episode do not appear in library. why?
Must I touch any setting or add some code to advanced settings?