[mythtv-users] How to remove reference to deleted recording (the file)?

Brad DerManouelian myth at dermanouelian.com
Mon Sep 1 00:32:27 UTC 2008


On Aug 31, 2008, at 5:17 PM, Jean-Yves Avenard wrote:

> Hi
>
> 2008/9/1 Nick Rout <nick.rout at gmail.com>:
>>> What is the best way to automatically remove from the database all  
>>> the
>>> recordings that do not exist anymore ?
>>
>> http://www.mythtv.org/wiki/index.php/Myth.rebuilddatabase.pl
>
> Hum... I ran that script but this isn't doing what I'm after.
> It *added* recordings that weren't in the database but existing in the
> recordings directory.
>
> What I want to do is *remove* from the database recordings that do not
> exist in the recordings directory.

This is the script you really want:
http://www.mythtv.org/wiki/index.php/Myth.find_orphans.pl

But the better way is to delete them from the frontend. Always better  
to use the GUI tool than a script to modify the DB... just in case. :)

-Brad



More information about the mythtv-users mailing list