blob: 069d0631c95bb4bd3ab49bb4d5a0bdc51be573d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
This is a very simple script to demonstrate the 'series link' concept. Run it every day as a cron job and never miss your favourite series again! Just create a timer for the first programme in a series and the script will automatically record the rest for you.
Configuration parameters at the start of the file must be set to match your vdr
settings. The 'padding' values must match those used when you manually set timers (eg when using vdradmin).
The script creates a file "links.data" in the vdr directory when run. This file contains series CRIDs of all of the timers which have been set, and the item CRIDs of the individual programmes which have had recordings scheduled. A timestamp against each entry gives the date of the last timer set, so that old series can be automatically purged.
Points to remember:
- Not all channels on UK Freeview have CRIDs in the EPG (at present just the BBC, ITV, C4 and C5 stables plus Sky 3).
- Different programme providers have different ideas of what constitutes a 'series'.
- The timer creation process is very simplistic; it doesn't check for timer clashes, and selects the first physical entry in the EPG (which may not be the prime broadcast of the programme).
- A series link is created for every timer whether you want one or not.
- If you run this script overnight, a timer set one day which fires on the same day will not create a series link (because the timer no longer exists).
- This script has not been tested with multiple tuner cards or with mixed DVB-T and
DVB-S setups.
|