[mythtv-users] How do I remove recordings without files

Robert McNamara robert.mcnamara at gmail.com
Thu Mar 5 23:50:48 UTC 2009


On Thu, Mar 5, 2009 at 3:46 PM, Owen Townend <owen.townend at gmail.com> wrote:
> Kirk Fitzpatrick wrote:
>> Henrik Beckman wrote:
>>> Ie got a bunch of these
>>>
>>> 2009-03-04 13:05:11.587 ERROR when trying to delete file:
>>> /GetPlaybackURL/UNABLE/TO/FIND/LOCAL/FILE/ON/media/2098_20081123180345.mpg.
>>>
>>> File does
>>> n't exist.  Database metadata will not be removed.
>>>
>>> How can I remove them.
>>
>> Here's a script I use that checks all DB entries have a file associated
>> with them, otherwise it deletes them (the DB entries);
>>
>
> Hey,
> Handy script, but it doesn't deal well with storage groups...
> Perhaps something like this:


Or one could just use the myth.find_orphans.pl script in the contrib
directory.  ;)  It handles storage groups, and has options both to
reconcile the files against the database (--dodelete) and the database
against the files (--dodbdelete).

Robert


More information about the mythtv-users mailing list