Well done.
For future reference, if MC knows the Series and Episode names, and the program is listed on TheTVDB, the MC "Get Movie & TV Info..." function will find the correct program and update the Library with the Season and Episode numbers, Description, etc. MC used to rely on having the Season and Episode numbers for the lookup, but that was changed quite some time ago.
CARNAC, the MC functionality which reads the file name on import and "guesses" what it is, can usually get the Series and Episode names correct, if they are structured into the file name. If not the "fill properties from filename" can usually fix that, using a template if necessary.
Next time you have a bunch of files in the above situation, test the "Get Movie & TV Info..." function on just one file without running your above fix, and see if it works for you. If so, just run it on all files at once. Done.