[mythtv-users] Number of Recordings to keep...

Karl Dietz dekarl at spaetfruehstuecken.org
Mon Dec 17 15:38:24 UTC 2012


On 17.12.2012 13:00, Jason Gauthier wrote:

>> Your example is for keeping 2 recordings of that one recording rule.
>> But if I understand correctly you only ever create one recording per rule, then delete the rule and create a new one, thus never reaching the point where something gets>deleted.
>
> And that makes sense.  Can I create a custom rule that records hourly?

I don't think you can create such a rule easily. MythTV works best with
guide data. Depending on your use case you can make up some guide data.

If you don't get guide data (maybe because its the front door camera
fed into the tv distribution of a larger house or a 24 hour news
station without schedule) you can just make it up.
Create a xmltv file for channelid "my.station.yourdomain" with one hour
programs using the same title (e.g. "the front door" or "news channel",
maybe give them a nice episode title / subtitle of your local
date/time).
Then uncheck "use on air guide" of that channel and insert your new
xmltvid into the xmltvid field and import the schedule with
mythfilldatabase.

Now you can setup a recording rule of "record everytime" or "record all
on this channel" with "keep 2" and "delete old and record new".
The cron job can be retired now :-)

the file would look similar to this:
<tv>
   <channel id="my.station.yourdomain">
     <display-name>Front Door Camera</display-name>
   </channel>
   <programme start="201212170000Z" stop="201212170100Z" 
channel="my.station.yourdomain">
     <title>The Front Door</title>
     <sub-title>2012-12-17 Monday 00:00 Zulu</sub-title>
   </programme>
   <programme start="201212170100Z" stop="201212170200Z" 
channel="my.station.yourdomain">
     <title>The Front Door</title>
     <sub-title>2012-12-17 Monday 01:00 Zulu</sub-title>
   </programme>
   <!-- and so on -->
</tv>

Regards,
Karl


More information about the mythtv-users mailing list