Just restore from your backup. You do have a backup, right? Right?
Seriously though, you should have a separate library for movies and another for shows. I don't know if that will solve your problem, but it's where I would start. And you should have backups too.