[mythtv-users] wanted: script to balance autoexpire recordings in storage dirs to avoid premature deletion

Michael T. Dean mtdean at thirdcontact.com
Fri Jan 21 05:15:48 UTC 2011


  On 01/20/2011 10:58 PM, Peter Watkins wrote:
> On Mon, Jan 17, 2011 at 11:58:49AM -0500, Michael T. Dean wrote:
>> mythbackend --printexpire
> This looks pretty good, but it's more "human-readable" than designed
> for a script -- e.g. (at least in Ubuntu's 0.21+fixes) it lists
> title or title : subtitle. It would be great if this also printed
> the filename, but perhaps the file size in MB will suffice.

http://<masterbackend>:6544/Myth/GetExpiring

which has channel ID and start time.  Unfortunately, there's no 
GetRecordedDetails (to mirror GetProgramDetails).  You could use the 
channel ID + start time along with the Python bindings to access the 
recording info, including file name.

But, since you'd need the bindings to get from chanid+starttime to 
recording file, you might as well go all bindings:

http://mythtv.org/wiki/0.24_Python_bindings/Connection_Handlers#getExpiring

Thanks to Raymond Wagner for the pointer to the appropriate bindings info.

Mike






More information about the mythtv-users mailing list