Import function, but for the DVR recordings

After experiencing some unexpected restarts, I've come to experience how fragile the database is. If my virtual host has an issue i might not be able to ssh into the server to issue a proper shutdown command to channels.

I know that we can import a personal video library, but that is great for an external source like Plex. What I'd like is for a method to have the server rescan its DVR directory and rebuild the database from that, so that it is in charge of managing deletions, it finds orphaned episodes, etc.

It wouldn't have to be a perfect import. I figure some series you wouldn't be able to match to an entry in the upcoming guide, for instance, to infer what channel it was likely recorded from.

But after recovering the backup database from a week ago, I've got episodes that were recorded in the interim that i can't watch without moving them to my personal media library. And then I'm stuck manually deleting them, because i don't want channels removing other content from that library.