[mythtv-users] Cleanup recordings not in database
kanetse@gmail.com
kane.tse at gmail.com
Tue Jun 14 20:29:23 UTC 2011
On Tue, Jun 14, 2011 at 9:57 AM, Chris Kapp <chris.kapp at gmail.com> wrote:
>
> Recently I had a hard drive crash that left records in the database
> without files and files without database records (I managed to get
> some of the files backed up before I completely lost the drive). I
> found this script worked well:
>
> http://www.mythtv.org/wiki/Find_orphans.py
>
Find_orphans.py works well to delete recordings without a database
entry (which is what the OP asked for). Does anyone know if MythTV
writes some kind of metadata (show title, episode info, etc.) into the
.mpg file headers that can somehow be extracted out? Then one could
parse that metadata and re-insert it into the database.
I've got code to look up a recording in TTVDB and put it back into the
database, but it needs to know the tv show and episode name.
More information about the mythtv-users
mailing list