blob: 94dcc627071983db265236158fb689e355d97e33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
#!/bin/bash
#
# Displays the AUX-Info from timers
#
# Use it as command in timercmds.conf
#
# Example:
#
# Display AUX info : /usr/local/bin/timercmds-auxinfo.sh
#
# 2006-04-24 vejoun @ vdrportal
# Version 0.4
#
#<Configuration>
# Your timers.conf
TIMERS="/video/timers.conf"
#</Configuration>
CHANNELID="$2"
START="$3"
TITLE="$5"
SUBTITLE="$6"
DIR="$7"
TIME="$(awk 'BEGIN{print strftime("%Y-%m-%d:%H%M",'$START')}')" || exit $?
SEARCH="[0-9]*:${CHANNELID}:${TIME}:[0-9]*:[0-9]*:[0-9]*:${DIR//:/|/}:"
AUX="$(egrep -m 1 "$SEARCH" "$TIMERS" | cut -d":" -f9-)"
if [ -n "$TITLE" ]; then
echo -e "TITLE:\n$TITLE\n"
else
echo -e "TITLE:\nTimer off, no title available\n"
fi
if [ -n "$SUBTITLE" ]; then
echo -e "SUBTITLE:\n$SUBTITLE\n"
else
if [ -n "$TITLE" ]; then
echo -e "SUBTITLE:\nNo subtitle available\n"
else
echo -e "SUBTITLE:\nTimer off, no subtitle available\n"
fi
fi
if [ -n "$DIR" ]; then
echo -e "PATH:\n$DIR\n"
fi
if [ -z "$AUX" ]; then
echo -e "AUX:\nNo AUX data found\n"
else
echo -e "AUX:\n${AUX//></>\\n<}\n"
fi
#EOF
|