summaryrefslogtreecommitdiff
path: root/tools/check.sh
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2006-02-06 15:54:49 +0100
committerAndreas Mair <amair.sob@googlemail.com>2006-02-06 15:54:49 +0100
commit241fa247256050d545d0d4024f260012c20c498d (patch)
tree73d0fb27955a44cf4980d7dc04b2cbd2bf7c091a /tools/check.sh
parent34e86d2c14b20da21febb89614bbeb4522b481ef (diff)
downloadvdradmin-am-241fa247256050d545d0d4024f260012c20c498d.tar.gz
vdradmin-am-241fa247256050d545d0d4024f260012c20c498d.tar.bz2
2006-02-06: 3.4.3rc2v3.4.3rc2
- For timers that are checked by AutoTimer for start/stop times the broadcast's length must at least match 90% of the original timer's length (excluding before/behind buffers). - Reworked detection of already programmed AutoTimers and made it compatible to VDR v1.3.23+ (Based on suggestions by Jouni Karvo). - Don't crash if illegal characters are used for searching (Reported by foobar42). - Fixed error after progamming a timer if VDRAdmin is accessed through apache (Reported by speed). - If there were quotes in an AutoTimer's pattern and you clicked "test" the pattern got cleared (Reported by The_Pit).
Diffstat (limited to 'tools/check.sh')
-rwxr-xr-xtools/check.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/check.sh b/tools/check.sh
new file mode 100755
index 0000000..823d724
--- /dev/null
+++ b/tools/check.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+[ -z "$1" ] && exit 1
+
+cat $1 | sed -e 's#<\(tmpl_[^>]*\)>#<%!\1 /!%>#g' -e 's#</\(tmpl_[^>]*\)>#<%!\1 /!%>#g' | tidy -xml
+#cat $1 | sed -e 's#\(<tmpl_var [^>]*\)>#\1 />#g' -e 's#\(<tmpl_else\)>#\1 />#g' | tidy -xml