Movies/TV shows only in music
I have a bunch of movie files (various, including TV show episodes, bought movies and home movies) that only show up in the music list. Their "Media Kind" is listed as "Music", and I cannot change it to "Movies" or "TV Show". It only lists "Music", "Podcast", "iTunes U", "Audiobook", and "Voice Memo".
The files play fine, but they do not show up in their correct sections.
How do I get them back with properly assigned media kind?
(I did had a hard drive failure recently, and has to restore from a Time Machine backup, but I'm not sure that caused the issue. I think they already did not appear in their respective Movies or TV Show section before, but I didn't register what had happened.)