[mythtv] Way of calling FORCE_DELETE_RECORDING
Michael T. Dean
mtdean at thirdcontact.com
Sun Aug 6 16:58:28 UTC 2006
On 08/06/2006 08:24 AM, Jochen Kühner wrote:
> Chris Pinkham schrieb:
>
>> * On Sun Aug 06, 2006 at 11:47:12AM +0200, Jochen K?hner wrote:
>>
>>> is there a way of sending the command
>>>
>>> FORCE_DELETE_RECORDING
>>>
>>> to the backend??
>> Same way you'd send any other command to the backend, open a
>> connection, and send the command. :)
>>
>> Not sure what you're looking for here. Perhaps if you
>> explained it a little more. Do you mean from the frontend,
>> from your own program, from where?
> when i was walking through the source, i think that this command expires
> recordings from my list even when the file is not there any more.
> (because i had a harddrive crash and i have many recordings in my db
> which are not there any more, but the auto expire doesn't delete them)
>
Auto-expire doesn't delete non-existent recordings because its purpose
is to reclaim space to make room for new recordings. Expiring a
non-existent recording doesn't reclaim any space, so it would not server
the purpose of the autoexpire function.
> but i don't know how to run this command??? is there a menuitem for it
> in the frontend??? can i do it like mythbackend --forcedelete or is it
> there and not used (so that i have to write my own program!)
You can manually delete non-existent recordings through the UI. If
you're using SVN trunk r9490 or 0.19-fixes r10505 or higher, it works
without issue (it pops up a dialog saying the file doesn't exist and
then allows you to see recording details or delete the metadata from the
database). The challenge is finding the non-existent recordings (which
can be done pretty easily with some simple SQL, ls, etc.).
Mike
More information about the mythtv-dev
mailing list